mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 14:34:07 +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
@ -431,6 +431,7 @@ void input_manager_set_focus(struct sway_node *node) {
|
|||||||
struct sway_seat *seat;
|
struct sway_seat *seat;
|
||||||
wl_list_for_each(seat, &server.input->seats, link) {
|
wl_list_for_each(seat, &server.input->seats, link) {
|
||||||
seat_set_focus(seat, node);
|
seat_set_focus(seat, node);
|
||||||
|
seat_consider_warp_to_focus(seat);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user