fix xwaylabnd too, stuff

This commit is contained in:
vaxerski 2022-03-19 20:56:19 +01:00
parent cf76b90606
commit 1a298257c9
7 changed files with 38 additions and 5 deletions

View file

@ -247,3 +247,10 @@ void CHyprDwindleLayout::onWindowRemoved(CWindow* pWindow) {
m_lDwindleNodesData.remove(*PPARENT);
m_lDwindleNodesData.remove(*PNODE);
}
void CHyprDwindleLayout::recalculateMonitor(const int& monid) {
const auto TOPNODE = getMasterNodeOnMonitor(monid);
if (TOPNODE)
TOPNODE->recalcSizePosRecursive();
}

View file

@ -31,6 +31,7 @@ class CHyprDwindleLayout : public IHyprLayout {
public:
virtual void onWindowCreated(CWindow*);
virtual void onWindowRemoved(CWindow*);
virtual void recalculateMonitor(const int&);
private:

View file

@ -8,5 +8,6 @@ public:
virtual void onWindowCreated(CWindow*) = 0;
virtual void onWindowRemoved(CWindow*) = 0;
virtual void recalculateMonitor(const int&) = 0;
};