commit 85e95d5825cdd24cc9a3c8efc2078c414300a8af
parent 49c937fc878da3ffb155429216ad8298202f1767
Author: Drew DeVault <sir@cmpwn.com>
Date: Wed, 5 Sep 2018 20:39:13 -0400
Merge pull request #2580 from RyanDwyer/fix-focus-after-fullscreen
Restore focus correctly when closing a fullscreen view
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git 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);
}
}