summaryrefslogtreecommitdiff
path: root/src/layout/DwindleLayout.cpp
diff options
context:
space:
mode:
authorFelix Dick <felix.dick@web.de>2022-09-29 21:15:08 +0200
committerFelix Dick <felix.dick@web.de>2022-09-29 21:15:08 +0200
commit09268d756fafe7d726b660739b57f9c9c18b9c6c (patch)
treefb3aa89358c2e2955bfeda8e249962a1b02c4c4c /src/layout/DwindleLayout.cpp
parent1424539e4d0a9bdd39f77a963e3589d69a74c446 (diff)
parentda40bf823f2f307e439f4bd85c405d9e612c2df5 (diff)
Merge branch 'main' into rework_rounding_shader
Diffstat (limited to 'src/layout/DwindleLayout.cpp')
-rw-r--r--src/layout/DwindleLayout.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp
index 9ded8f95..ba59034c 100644
--- a/src/layout/DwindleLayout.cpp
+++ b/src/layout/DwindleLayout.cpp
@@ -520,6 +520,17 @@ void CHyprDwindleLayout::onWindowRemovedTiling(CWindow* pWindow) {
PSIBLING->size = PPARENT->size;
PSIBLING->pParent = PPARENT->pParent;
+ if (PSIBLING->isGroupMember()) {
+ // apply to all group members
+ SDwindleNodeData* current = PSIBLING->pNextGroupMember;
+
+ while (current != PSIBLING) {
+ current->position = PPARENT->position;
+ current->size = PPARENT->size;
+ current = current->pNextGroupMember;
+ }
+ }
+
if (PPARENT->pParent != nullptr) {
if (PPARENT->pParent->children[0] == PPARENT) {
PPARENT->pParent->children[0] = PSIBLING;