summaryrefslogtreecommitdiff
path: root/src/layout/DwindleLayout.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-06 18:12:41 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-06 18:12:41 +0200
commit4a8274e5f0d6c48cf83cfdc83ecd1a02225b90e2 (patch)
treec95db8d5cb9d4ab06ac835ccdee73dba177fc1dc /src/layout/DwindleLayout.cpp
parent4b7d28d2cb97a356501a03afbbce66784972a462 (diff)
fix dwindle no gaps when only when dissolving a group
Diffstat (limited to 'src/layout/DwindleLayout.cpp')
-rw-r--r--src/layout/DwindleLayout.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp
index 217ac9ae..6d66fb14 100644
--- a/src/layout/DwindleLayout.cpp
+++ b/src/layout/DwindleLayout.cpp
@@ -484,6 +484,12 @@ void CHyprDwindleLayout::onWindowRemovedTiling(CWindow* pWindow) {
PNEXT->pWindow->m_bHidden = false;
m_lDwindleNodesData.remove(*PNODE);
+
+ if (!PNEXT->isGroupMember()) {
+ // means we dissolved the group
+ recalculateMonitor(PNEXT->pWindow->m_iMonitorID);
+ }
+
return;
}