aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/input-manager.c
diff options
context:
space:
mode:
authorLibravatar Rouven Czerwinski <rouven@czerwinskis.de>2018-10-28 10:29:10 +0100
committerLibravatar Rouven Czerwinski <rouven@czerwinskis.de>2018-10-28 10:29:10 +0100
commit6f87d0c2cf1c712356e1132e9cb347d40263f09c (patch)
tree75ef2c39fbe767611d4e15a409d0459ff3d9071b /sway/input/input-manager.c
parentMerge pull request #3001 from madblobfish/swaylock-completions-and-manpage (diff)
downloadsway-6f87d0c2cf1c712356e1132e9cb347d40263f09c.tar.gz
sway-6f87d0c2cf1c712356e1132e9cb347d40263f09c.tar.zst
sway-6f87d0c2cf1c712356e1132e9cb347d40263f09c.zip
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.
Diffstat (limited to 'sway/input/input-manager.c')
-rw-r--r--sway/input/input-manager.c1
1 files changed, 1 insertions, 0 deletions
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) {
431 struct sway_seat *seat; 431 struct sway_seat *seat;
432 wl_list_for_each(seat, &server.input->seats, link) { 432 wl_list_for_each(seat, &server.input->seats, link) {
433 seat_set_focus(seat, node); 433 seat_set_focus(seat, node);
434 seat_consider_warp_to_focus(seat);
434 } 435 }
435} 436}
436 437