mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
Fix single group nesting bug
Nested single child groups could be created by making a group with a window and a single child group, then deleting the window.
This commit is contained in:
parent
d087b83249
commit
9082d9259f
1 changed files with 8 additions and 0 deletions
|
@ -523,6 +523,14 @@ void Hy3Layout::onWindowRemovedTiling(CWindow* window) {
|
|||
if (parent != nullptr) {
|
||||
parent->recalcSizePosRecursive();
|
||||
}
|
||||
|
||||
auto* target_parent = parent;
|
||||
while (target_parent != nullptr && swallowGroup(target_parent)) {
|
||||
target_parent = target_parent->parent;
|
||||
}
|
||||
|
||||
if (target_parent != parent && target_parent != nullptr)
|
||||
target_parent->recalcSizePosRecursive();
|
||||
}
|
||||
|
||||
CWindow* Hy3Layout::getNextWindowCandidate(CWindow* window) {
|
||||
|
|
Loading…
Add table
Reference in a new issue