diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-29 10:49:44 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-29 10:51:54 +1000 |
commit | 2438f5f0503f285f1753b03e28532ad39c89b08a (patch) | |
tree | ec7d3d7d41cc2cae0b173d64d5a2a30eddb450b9 /sway/tree | |
parent | 095ca7576918f3ad46113529ff9369a5be9ae70c (diff) |
Fix crash when reaping a workspace
It wasn't returning the surviving container.
Diffstat (limited to 'sway/tree')
-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; } |