aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 3c8e2780..b0d23700 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -1355,16 +1355,6 @@ void container_detach(struct sway_container *child) {
1355 container_update_representation(old_parent); 1355 container_update_representation(old_parent);
1356 node_set_dirty(&old_parent->node); 1356 node_set_dirty(&old_parent->node);
1357 } else if (old_workspace) { 1357 } else if (old_workspace) {
1358 // We may have removed the last tiling child from the workspace. If the
1359 // workspace layout was e.g. tabbed, then at this point it may be just
1360 // H[]. So, reset it to the default (e.g. T[]) for next time.
1361 // But if we are evacuating a workspace with only sticky floating
1362 // containers, the workspace will already be detached from the output.
1363 if (old_workspace->output && !old_workspace->tiling->length) {
1364 old_workspace->layout =
1365 output_get_default_layout(old_workspace->output);
1366 }
1367
1368 workspace_update_representation(old_workspace); 1358 workspace_update_representation(old_workspace);
1369 node_set_dirty(&old_workspace->node); 1359 node_set_dirty(&old_workspace->node);
1370 } 1360 }