aboutsummaryrefslogtreecommitdiff
path: root/sway/input
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-02-01 09:27:00 +0100
committerGitHub <noreply@github.com>2019-02-01 09:27:00 +0100
commitde76c4e071471e7ca4a06010b1d0d8c1ebd33eea (patch)
tree34d1fbfd2c63cf5337d46b5320831e26d711441f /sway/input
parent47271552b0f5ae5dbba6efd3882e5cce2d83070e (diff)
parentdde9fc19de7fce1ecbd79e8e84e6ae321becad00 (diff)
Merge pull request #3543 from emersion/relative-pointer-usec
relative-pointer-v1: time is in usec, not msec
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/cursor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 106b1910..c38d8d3a 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -450,7 +450,8 @@ static void cursor_motion_absolute(struct sway_cursor *cursor,
double dy = ly - cursor->cursor->y;
wlr_relative_pointer_manager_v1_send_relative_motion(
server.relative_pointer_manager,
- cursor->seat->wlr_seat, time_msec, dx, dy, dx, dy);
+ cursor->seat->wlr_seat, (uint64_t)time_msec * 1000,
+ dx, dy, dx, dy);
struct wlr_surface *surface = NULL;
double sx, sy;