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:
Rouven Czerwinski 2018-10-28 10:29:10 +01:00
parent 707f3ad275
commit 6f87d0c2cf
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}
}