mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 08:26:45 +01:00
No need to walk to workspace, recursive will
This commit is contained in:
parent
47c20f8ea4
commit
4e7ef1dd39
1 changed files with 1 additions and 4 deletions
|
@ -192,10 +192,7 @@ void container_move_to(struct sway_container *container,
|
||||||
seat_set_focus(seat, ws);
|
seat_set_focus(seat, ws);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove an empty workspace from the destination output.
|
// Try to remove an empty workspace from the destination output.
|
||||||
if (new_parent_focus->type != C_WORKSPACE) {
|
|
||||||
new_parent_focus = container_parent(new_parent_focus, C_WORKSPACE);
|
|
||||||
}
|
|
||||||
container_reap_empty_recursive(new_parent_focus);
|
container_reap_empty_recursive(new_parent_focus);
|
||||||
|
|
||||||
container_sort_workspaces(new_parent);
|
container_sort_workspaces(new_parent);
|
||||||
|
|
Loading…
Reference in a new issue