aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-11 19:56:29 +0200
committervaxerski <[email protected]>2022-08-11 19:56:29 +0200
commitaba63a7f968e416d63de36c6ab4d8edbce84dc38 (patch)
tree0da4ccda3a42e6e69f669388901d2c78112c679c
parentc9ed5bf77e576bc348b4a8309a8e8c04cc27c038 (diff)
downloadHyprland-aba63a7f968e416d63de36c6ab4d8edbce84dc38.tar.gz
Hyprland-aba63a7f968e416d63de36c6ab4d8edbce84dc38.zip
disallow nested groups creation
-rw-r--r--src/layout/DwindleLayout.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp
index e6f8c98b..fa9cbeab 100644
--- a/src/layout/DwindleLayout.cpp
+++ b/src/layout/DwindleLayout.cpp
@@ -768,6 +768,11 @@ void CHyprDwindleLayout::toggleWindowGroup(CWindow* pWindow) {
addToDequeRecursive(&newGroupMembers, &nodesToRemove, PNODE->pParent->children[0] == PNODE ? PNODE->pParent->children[1] : PNODE->pParent->children[0]);
+ for (auto& n : newGroupMembers) {
+ if (n->isGroupMember())
+ return; // reject nested groups
+ }
+
for (auto& nd : nodesToRemove) {
m_lDwindleNodesData.remove(*nd);
}