diff options
author | Scott Leggett <[email protected]> | 2018-05-27 22:45:14 +1000 |
---|---|---|
committer | Scott Leggett <[email protected]> | 2018-05-28 01:37:43 +1000 |
commit | 4cd304e4bacb255694bf63f8f1ccacd352a96144 (patch) | |
tree | 94fe3761d10f4dcd3ae01a058f0927be882f5827 /sway/input/seat.c | |
parent | 06098bef98ec515584ab8007cbf7a104f2d67980 (diff) |
Store previous position in sway_cursor.
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |