mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Merge pull request #2354 from RyanDwyer/fix-crash-on-tab-reap
Fix crash when closing last child of a tabbed container
This commit is contained in:
commit
fd1e2c172c
1 changed files with 1 additions and 0 deletions
|
@ -181,6 +181,7 @@ static void handle_seat_container_destroy(struct wl_listener *listener,
|
||||||
bool set_focus =
|
bool set_focus =
|
||||||
focus != NULL &&
|
focus != NULL &&
|
||||||
(focus == con || container_has_child(con, focus)) &&
|
(focus == con || container_has_child(con, focus)) &&
|
||||||
|
con->parent && con->parent->children->length > 1 &&
|
||||||
con->type != C_WORKSPACE;
|
con->type != C_WORKSPACE;
|
||||||
|
|
||||||
seat_container_destroy(seat_con);
|
seat_container_destroy(seat_con);
|
||||||
|
|
Loading…
Reference in a new issue