diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-08 13:20:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-08 13:20:14 -0400 |
commit | 26e5974496e80b9fb07af19fcfb1777b90294a91 (patch) | |
tree | d154691ce597acb68cba20160ef324f22fa45eba /sway/input/seat.c | |
parent | ebabcc8b44846eaccdd34e3e48aa07d6bf7b58a7 (diff) | |
parent | 9c5a88a7bd57dc9710c0fe779d8403a87ddc0b6a (diff) |
Merge pull request #1778 from swaywm/fix-cursor
Fix cursor motion issues
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index c34da5e5..d9b42828 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -434,6 +434,9 @@ 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); + struct timespec now; + clock_gettime(CLOCK_MONOTONIC, &now); + cursor_send_pointer_motion(seat->cursor, now.tv_nsec / 1000); } } } |