mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Merge pull request #2989 from RyanDwyer/fix-focus-glitchiness
Fix focus after a non-visible workspace's last container is destroyed
This commit is contained in:
commit
b52e005346
1 changed files with 4 additions and 0 deletions
|
@ -185,7 +185,11 @@ static void handle_seat_node_destroy(struct wl_listener *listener, void *data) {
|
|||
seat_set_focus(seat, next_focus);
|
||||
} else {
|
||||
// Setting focus_inactive
|
||||
focus = seat_get_focus_inactive(seat, &root->node);
|
||||
seat_set_raw_focus(seat, next_focus);
|
||||
if (focus->type == N_CONTAINER) {
|
||||
seat_set_raw_focus(seat, &focus->sway_container->workspace->node);
|
||||
}
|
||||
seat_set_raw_focus(seat, focus);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue