diff options
author | Rouven Czerwinski <rouven@czerwinskis.de> | 2018-10-28 10:29:10 +0100 |
---|---|---|
committer | Rouven Czerwinski <rouven@czerwinskis.de> | 2018-10-28 10:29:10 +0100 |
commit | 6f87d0c2cf1c712356e1132e9cb347d40263f09c (patch) | |
tree | 75ef2c39fbe767611d4e15a409d0459ff3d9071b /sway/input/input-manager.c | |
parent | 707f3ad2750d74a46ff859439e87acc661b599f5 (diff) |
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.c | 1 |
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) { struct sway_seat *seat; wl_list_for_each(seat, &server.input->seats, link) { seat_set_focus(seat, node); + seat_consider_warp_to_focus(seat); } } |