diff options
author | 2019-01-30 21:30:44 +0100 | |
---|---|---|
committer | 2019-01-30 21:30:44 +0100 | |
commit | dde9fc19de7fce1ecbd79e8e84e6ae321becad00 (patch) | |
tree | 295148a7cb47edd3a98bf7009ef4424b8e33d1ea /sway/input/cursor.c | |
parent | Send pointer frames on tool events (diff) | |
download | sway-dde9fc19de7fce1ecbd79e8e84e6ae321becad00.tar.gz sway-dde9fc19de7fce1ecbd79e8e84e6ae321becad00.tar.zst sway-dde9fc19de7fce1ecbd79e8e84e6ae321becad00.zip |
relative-pointer-v1: time is in usec, not msec
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index e51d3e38..e8674490 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -450,7 +450,8 @@ static void cursor_motion_absolute(struct sway_cursor *cursor, | |||
450 | double dy = ly - cursor->cursor->y; | 450 | double dy = ly - cursor->cursor->y; |
451 | wlr_relative_pointer_manager_v1_send_relative_motion( | 451 | wlr_relative_pointer_manager_v1_send_relative_motion( |
452 | server.relative_pointer_manager, | 452 | server.relative_pointer_manager, |
453 | cursor->seat->wlr_seat, time_msec, dx, dy, dx, dy); | 453 | cursor->seat->wlr_seat, (uint64_t)time_msec * 1000, |
454 | dx, dy, dx, dy); | ||
454 | 455 | ||
455 | struct wlr_surface *surface = NULL; | 456 | struct wlr_surface *surface = NULL; |
456 | double sx, sy; | 457 | double sx, sy; |