diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-09-06 09:33:37 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-09-06 09:33:37 +1000 |
commit | 5cc70d1dfdc891e99f6759869cc9272f1429ec16 (patch) | |
tree | 5c0c1e8399a738a27fbe3a7805af75650aa142a8 /sway/input | |
parent | 49c937fc878da3ffb155429216ad8298202f1767 (diff) |
Restore focus correctly when closing a fullscreen view
We weren't calling seat_send_focus. I think this was previously called
by seat_set_focus_warp.
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/seat.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 92d9d7ec..b1808793 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -168,11 +168,8 @@ static void handle_seat_node_destroy(struct wl_listener *listener, void *data) { // the structure change might have caused it to move up to the top of // the focus stack without sending focus notifications to the view - if (seat_get_focus(seat) == next_focus) { - seat_send_focus(next_focus, seat); - } else { - seat_set_focus(seat, next_focus); - } + seat_send_focus(next_focus, seat); + seat_set_focus(seat, next_focus); } } |