commit fd1e2c172c12b5c5a3adac8e6de4009697bd7567
parent cdc4ad2b4f6239607e8eb5e398891dd78bc5c7ea
Author: emersion <contact@emersion.fr>
Date: Wed, 25 Jul 2018 10:49:43 +0100
Merge pull request #2354 from RyanDwyer/fix-crash-on-tab-reap
Fix crash when closing last child of a tabbed container
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/sway/input/seat.c b/sway/input/seat.c
@@ -181,6 +181,7 @@ static void handle_seat_container_destroy(struct wl_listener *listener,
bool set_focus =
focus != NULL &&
(focus == con || container_has_child(con, focus)) &&
+ con->parent && con->parent->children->length > 1 &&
con->type != C_WORKSPACE;
seat_container_destroy(seat_con);