mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
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.
This commit is contained in:
parent
49c937fc87
commit
5cc70d1dfd
@ -168,12 +168,9 @@ 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static struct sway_seat_node *seat_node_from_node(
|
||||
|
Loading…
Reference in New Issue
Block a user