summaryrefslogtreecommitdiff
path: root/src/layout
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-19 20:56:19 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-19 20:56:19 +0100
commit1a298257c9d7d0e140e3af60f873a71a91dd05ed (patch)
tree465631a4363bc957d4a0fa2a4b435787015ecba9 /src/layout
parentcf76b9060636c03e495fe522f7b4c251327adc98 (diff)
fix xwaylabnd too, stuff
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/DwindleLayout.cpp7
-rw-r--r--src/layout/DwindleLayout.hpp1
-rw-r--r--src/layout/IHyprLayout.hpp1
3 files changed, 9 insertions, 0 deletions
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