aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r--sway/tree/layout.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c
index fce8ba42..0dba4aab 100644
--- a/sway/tree/layout.c
+++ b/sway/tree/layout.c
@@ -192,10 +192,7 @@ void container_move_to(struct sway_container *container,
seat_set_focus(seat, ws);
}
- // 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);
- }
+ // Try to remove an empty workspace from the destination output.
container_reap_empty_recursive(new_parent_focus);
container_sort_workspaces(new_parent);