diff options
author | vilhalmer <vil@vil.lv> | 2018-07-09 08:26:39 -0400 |
---|---|---|
committer | vilhalmer <vil@vil.lv> | 2018-07-09 08:26:39 -0400 |
commit | 4e7ef1dd39ae4ceadba0ffb1e8c6f9c60f43afda (patch) | |
tree | ba9c11ecf60135a23573e9e5790820c43da66e12 | |
parent | Regroup signal (diff) | |
download | sway-4e7ef1dd39ae4ceadba0ffb1e8c6f9c60f43afda.tar.gz sway-4e7ef1dd39ae4ceadba0ffb1e8c6f9c60f43afda.tar.zst sway-4e7ef1dd39ae4ceadba0ffb1e8c6f9c60f43afda.zip |
No need to walk to workspace, recursive will
-rw-r--r-- | sway/tree/layout.c | 5 |
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, | |||
192 | seat_set_focus(seat, ws); | 192 | seat_set_focus(seat, ws); |
193 | } | 193 | } |
194 | 194 | ||
195 | // Remove an empty workspace from the destination output. | 195 | // Try to remove an empty workspace from the destination output. |
196 | if (new_parent_focus->type != C_WORKSPACE) { | ||
197 | new_parent_focus = container_parent(new_parent_focus, C_WORKSPACE); | ||
198 | } | ||
199 | container_reap_empty_recursive(new_parent_focus); | 196 | container_reap_empty_recursive(new_parent_focus); |
200 | 197 | ||
201 | container_sort_workspaces(new_parent); | 198 | container_sort_workspaces(new_parent); |