sway

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

commit c1f09939ae4b5c0554b9f78921e02b2f9550c4e5
parent c8d1f376d35132ba119e1f02b6640484c55a34c7
Author: emersion <contact@emersion.fr>
Date:   Fri,  5 Oct 2018 09:40:05 +0200

Merge pull request #2768 from RyanDwyer/fix-flatten-crash

Fix crash when flattening container after moving
Diffstat:
Msway/input/seat.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/sway/input/seat.c b/sway/input/seat.c @@ -157,6 +157,11 @@ static void handle_seat_node_destroy(struct wl_listener *listener, void *data) { seat_node_destroy(seat_node); + if (!parent) { + // Destroying a container that is no longer in the tree + return; + } + // Find new focus_inactive (ie. sibling, or workspace if no siblings left) struct sway_node *next_focus = NULL; while (next_focus == NULL) {