diff options
author | emersion <contact@emersion.fr> | 2018-07-25 10:49:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-25 10:49:43 +0100 |
commit | fd1e2c172c12b5c5a3adac8e6de4009697bd7567 (patch) | |
tree | 9c55f79248819337f9d5c4310896eb86c49a533c /sway/input/seat.c | |
parent | cdc4ad2b4f6239607e8eb5e398891dd78bc5c7ea (diff) | |
parent | b14bd1b0b1536039e4f46fe94515c7c44e7afc61 (diff) |
Merge pull request #2354 from RyanDwyer/fix-crash-on-tab-reap
Fix crash when closing last child of a tabbed container
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index fc9e54b6..8c634e5f 100644 --- 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); |