From 4cd304e4bacb255694bf63f8f1ccacd352a96144 Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Sun, 27 May 2018 22:45:14 +1000 Subject: Store previous position in sway_cursor. --- sway/input/seat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sway/input/seat.c') diff --git a/sway/input/seat.c b/sway/input/seat.c index bb583286..7a3e928a 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, 0, 0, true); + cursor_send_pointer_motion(seat->cursor, 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, 0, 0, true); + cursor_send_pointer_motion(seat->cursor, 0, true); } seat->has_focus = (container != NULL); -- cgit v1.2.3