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 | Merge pull request #1777 from emersion/unmanaged-cursor-input (diff) | |
parent | Fix cursor motion issues (diff) | |
download | sway-26e5974496e80b9fb07af19fcfb1777b90294a91.tar.gz sway-26e5974496e80b9fb07af19fcfb1777b90294a91.tar.zst sway-26e5974496e80b9fb07af19fcfb1777b90294a91.zip |
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, | |||
434 | wlr_output, seat->cursor->cursor->x, | 434 | wlr_output, seat->cursor->cursor->x, |
435 | seat->cursor->cursor->y)) { | 435 | seat->cursor->cursor->y)) { |
436 | wlr_cursor_warp(seat->cursor->cursor, NULL, x, y); | 436 | wlr_cursor_warp(seat->cursor->cursor, NULL, x, y); |
437 | struct timespec now; | ||
438 | clock_gettime(CLOCK_MONOTONIC, &now); | ||
439 | cursor_send_pointer_motion(seat->cursor, now.tv_nsec / 1000); | ||
437 | } | 440 | } |
438 | } | 441 | } |
439 | } | 442 | } |