aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-09-06 19:59:59 +0200
committervaxerski <[email protected]>2022-09-06 19:59:59 +0200
commit789eedd115917bc0ae7e5ee7317af67295439fd8 (patch)
treefc69869a5f2c163f4ff3e9a224d729487ec6754a
parent4a8274e5f0d6c48cf83cfdc83ecd1a02225b90e2 (diff)
downloadHyprland-789eedd115917bc0ae7e5ee7317af67295439fd8.tar.gz
Hyprland-789eedd115917bc0ae7e5ee7317af67295439fd8.zip
fix a minor bug with no gaps when only and groups
-rw-r--r--src/layout/DwindleLayout.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp
index 6d66fb14..c6bfc6e5 100644
--- a/src/layout/DwindleLayout.cpp
+++ b/src/layout/DwindleLayout.cpp
@@ -469,15 +469,11 @@ void CHyprDwindleLayout::onWindowRemovedTiling(CWindow* pWindow) {
PNEXT->position = PNODE->position;
PNEXT->size = PNODE->size;
-
- applyNodeDataToWindow(PNEXT);
} else {
const auto PHEAD = PNODE->getGroupHead();
PNEXT->position = PHEAD->position;
PNEXT->size = PHEAD->size;
-
- applyNodeDataToWindow(PNEXT);
}
PNEXT->setGroupFocusedNode(PNEXT);
@@ -485,6 +481,8 @@ void CHyprDwindleLayout::onWindowRemovedTiling(CWindow* pWindow) {
m_lDwindleNodesData.remove(*PNODE);
+ applyNodeDataToWindow(PNEXT);
+
if (!PNEXT->isGroupMember()) {
// means we dissolved the group
recalculateMonitor(PNEXT->pWindow->m_iMonitorID);