Merge pull request #3543 from emersion/relative-pointer-usec

relative-pointer-v1: time is in usec, not msec
This commit is contained in:
Drew DeVault 2019-02-01 09:27:00 +01:00 committed by GitHub
commit de76c4e071
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;