diff options
-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, | |||
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); |