diff options
-rw-r--r-- | sway/input/seat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 577619a7..9d4dc7af 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -185,7 +185,11 @@ static void handle_seat_node_destroy(struct wl_listener *listener, void *data) { | |||
185 | seat_set_focus(seat, next_focus); | 185 | seat_set_focus(seat, next_focus); |
186 | } else { | 186 | } else { |
187 | // Setting focus_inactive | 187 | // Setting focus_inactive |
188 | focus = seat_get_focus_inactive(seat, &root->node); | ||
188 | seat_set_raw_focus(seat, next_focus); | 189 | seat_set_raw_focus(seat, next_focus); |
190 | if (focus->type == N_CONTAINER) { | ||
191 | seat_set_raw_focus(seat, &focus->sway_container->workspace->node); | ||
192 | } | ||
189 | seat_set_raw_focus(seat, focus); | 193 | seat_set_raw_focus(seat, focus); |
190 | } | 194 | } |
191 | } | 195 | } |