aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {
}
if (con && con->type == C_WORKSPACE) {
workspace_consider_destroy(con);
+ if (con->destroying) {
+ con = con->parent;
+ }
}
return con;
}