mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 16:36:26 +01:00
input-manager: consider cursor warping on input_manager_set_focus
input_manager_set_focus is used to set the focus after mapping the view in view_map. This needs to consider to warp the cursor as well, since for WARP_CONTAINER, the cursor should warp to the newly created view.
This commit is contained in:
parent
707f3ad275
commit
6f87d0c2cf
1 changed files with 1 additions and 0 deletions
|
@ -431,6 +431,7 @@ void input_manager_set_focus(struct sway_node *node) {
|
|||
struct sway_seat *seat;
|
||||
wl_list_for_each(seat, &server.input->seats, link) {
|
||||
seat_set_focus(seat, node);
|
||||
seat_consider_warp_to_focus(seat);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue