aboutsummaryrefslogtreecommitdiff
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorScott Leggett <scott@sl.id.au>2018-05-27 14:52:40 +1000
committerScott Leggett <scott@sl.id.au>2018-05-27 15:29:48 +1000
commit06098bef98ec515584ab8007cbf7a104f2d67980 (patch)
treef99df174b233ca266270afa3ef83d2627cf03bec /sway/input/seat.c
parentfea654a6ce4d618bfd0cc9b5d78d0726802889ec (diff)
Focus containers only on entry.
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 7a3e928a..bb583286 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -602,7 +602,7 @@ void seat_set_focus_warp(struct sway_seat *seat,
wlr_output, seat->cursor->cursor->x,
seat->cursor->cursor->y)) {
wlr_cursor_warp(seat->cursor->cursor, NULL, x, y);
- cursor_send_pointer_motion(seat->cursor, 0, true);
+ cursor_send_pointer_motion(seat->cursor, 0, 0, 0, true);
}
}
}
@@ -613,7 +613,7 @@ void seat_set_focus_warp(struct sway_seat *seat,
}
if (last_workspace && last_workspace != new_workspace) {
- cursor_send_pointer_motion(seat->cursor, 0, true);
+ cursor_send_pointer_motion(seat->cursor, 0, 0, 0, true);
}
seat->has_focus = (container != NULL);