sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 6f87d0c2cf1c712356e1132e9cb347d40263f09c
parent 707f3ad2750d74a46ff859439e87acc661b599f5
Author: Rouven Czerwinski <rouven@czerwinskis.de>
Date:   Sun, 28 Oct 2018 10:29:10 +0100

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:
Msway/input/input-manager.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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); } }