mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-08 22:05:58 +01:00
disallow nested groups creation
This commit is contained in:
parent
c9ed5bf77e
commit
aba63a7f96
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue