diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-02-13 03:01:06 -0500 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-02-13 09:49:34 +0100 |
commit | 1bccde68a4fadd0b4170faa16b97554a864447d4 (patch) | |
tree | 553d4a6a81fd5b936815d7af9a5bc9a5c4af41ea /sway | |
parent | 98b40d31c1178228dfc476b26d82e99bae338b5f (diff) |
cursor: relative-pointer-v1 time is usec
In handle_cursor_motion, the timestamp passed to
`wlr_relative_pointer_manager_v1_send_relative_motion` should be
microseconds (not milliseconds) according to relative-pointer-v1 spec.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/input/cursor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 263b6758..5ede6e74 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -421,8 +421,8 @@ static void handle_cursor_motion(struct wl_listener *listener, void *data) { wlr_relative_pointer_manager_v1_send_relative_motion( server.relative_pointer_manager, - cursor->seat->wlr_seat, event->time_msec, dx, dy, - dx_unaccel, dy_unaccel); + cursor->seat->wlr_seat, (uint64_t)event->time_msec * 1000, + dx, dy, dx_unaccel, dy_unaccel); struct wlr_surface *surface = NULL; double sx, sy; |