sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 2438f5f0503f285f1753b03e28532ad39c89b08a
parent 095ca7576918f3ad46113529ff9369a5be9ae70c
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date:   Wed, 29 Aug 2018 10:49:44 +1000

Fix crash when reaping a workspace

It wasn't returning the surviving container.

Diffstat:
Msway/tree/container.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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; }