From 1a298257c9d7d0e140e3af60f873a71a91dd05ed Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 19 Mar 2022 20:56:19 +0100 Subject: fix xwaylabnd too, stuff --- src/layout/DwindleLayout.cpp | 7 +++++++ src/layout/DwindleLayout.hpp | 1 + src/layout/IHyprLayout.hpp | 1 + 3 files changed, 9 insertions(+) (limited to 'src/layout') diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index da14dd73..932313d0 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -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(); +} \ No newline at end of file diff --git a/src/layout/DwindleLayout.hpp b/src/layout/DwindleLayout.hpp index 0b32fc8d..cb3e4a68 100644 --- a/src/layout/DwindleLayout.hpp +++ b/src/layout/DwindleLayout.hpp @@ -31,6 +31,7 @@ class CHyprDwindleLayout : public IHyprLayout { public: virtual void onWindowCreated(CWindow*); virtual void onWindowRemoved(CWindow*); + virtual void recalculateMonitor(const int&); private: diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp index feaaa835..2a7ff3aa 100644 --- a/src/layout/IHyprLayout.hpp +++ b/src/layout/IHyprLayout.hpp @@ -8,5 +8,6 @@ public: virtual void onWindowCreated(CWindow*) = 0; virtual void onWindowRemoved(CWindow*) = 0; + virtual void recalculateMonitor(const int&) = 0; }; \ No newline at end of file -- cgit v1.2.3