mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
parent
3c77f066a5
commit
320703fdca
1 changed files with 3 additions and 1 deletions
|
@ -327,9 +327,11 @@ void container_move(struct sway_container *container,
|
|||
current = container_parent(container, C_OUTPUT);
|
||||
}
|
||||
|
||||
if (parent != container_flatten(parent)) {
|
||||
struct sway_container *new_parent = container_flatten(parent);
|
||||
if (new_parent != parent) {
|
||||
// Special case: we were the last one in this container, so flatten it
|
||||
// and leave
|
||||
arrange_children_of(new_parent);
|
||||
update_debug_tree();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue