diff options
-rw-r--r-- | sway/tree/container.c | 3 |
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; } |