fix xwaylabnd too, stuff
This commit is contained in:
parent
cf76b90606
commit
1a298257c9
7 changed files with 38 additions and 5 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
@ -31,6 +31,7 @@ class CHyprDwindleLayout : public IHyprLayout {
|
|||
public:
|
||||
virtual void onWindowCreated(CWindow*);
|
||||
virtual void onWindowRemoved(CWindow*);
|
||||
virtual void recalculateMonitor(const int&);
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
|||
|
|
@ -8,5 +8,6 @@ public:
|
|||
|
||||
virtual void onWindowCreated(CWindow*) = 0;
|
||||
virtual void onWindowRemoved(CWindow*) = 0;
|
||||
virtual void recalculateMonitor(const int&) = 0;
|
||||
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue