From 6f87d0c2cf1c712356e1132e9cb347d40263f09c Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Sun, 28 Oct 2018 10:29:10 +0100 Subject: 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. --- sway/input/input-manager.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sway/input/input-manager.c') diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c index 91c45dd1..68445d68 100644 --- a/sway/input/input-manager.c +++ b/sway/input/input-manager.c @@ -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); } } -- cgit v1.2.3-54-g00ecf