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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index ee019098..520b4566 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -173,6 +173,9 @@ struct sway_container *container_reap_empty(struct sway_container *con) {
173 } 173 }
174 if (con && con->type == C_WORKSPACE) { 174 if (con && con->type == C_WORKSPACE) {
175 workspace_consider_destroy(con); 175 workspace_consider_destroy(con);
176 if (con->destroying) {
177 con = con->parent;
178 }
176 } 179 }
177 return con; 180 return con;
178} 181}