summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-07-25 10:49:43 +0100
committerLibravatar GitHub <noreply@github.com>2018-07-25 10:49:43 +0100
commitfd1e2c172c12b5c5a3adac8e6de4009697bd7567 (patch)
tree9c55f79248819337f9d5c4310896eb86c49a533c
parentMerge pull request #2352 from RedSoxFan/implement-2335 (diff)
parentFix crash when closing last child of a tabbed container (diff)
downloadsway-fd1e2c172c12b5c5a3adac8e6de4009697bd7567.tar.gz
sway-fd1e2c172c12b5c5a3adac8e6de4009697bd7567.tar.zst
sway-fd1e2c172c12b5c5a3adac8e6de4009697bd7567.zip
Merge pull request #2354 from RyanDwyer/fix-crash-on-tab-reap
Fix crash when closing last child of a tabbed container
-rw-r--r--sway/input/seat.c1
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,
181 bool set_focus = 181 bool set_focus =
182 focus != NULL && 182 focus != NULL &&
183 (focus == con || container_has_child(con, focus)) && 183 (focus == con || container_has_child(con, focus)) &&
184 con->parent && con->parent->children->length > 1 &&
184 con->type != C_WORKSPACE; 185 con->type != C_WORKSPACE;
185 186
186 seat_container_destroy(seat_con); 187 seat_container_destroy(seat_con);