rootston: add support for wlr_input_timestamps_v1

This commit is contained in:
random human 2019-06-14 20:46:15 +00:00
parent ab3a760874
commit dcb38e7f1c
No known key found for this signature in database
GPG key ID: 73E5A60444CC77A3
7 changed files with 49 additions and 25 deletions

View file

@ -93,7 +93,7 @@ static void update_cursors(struct roots_layer_surface *roots_surface,
struct timespec time;
if (clock_gettime(CLOCK_MONOTONIC, &time) == 0) {
roots_cursor_update_position(seat->cursor,
time.tv_sec * 1000 + time.tv_nsec / 1000000);
time.tv_sec * 1000 + time.tv_nsec / 1000000, time.tv_nsec);
} else {
wlr_log(WLR_ERROR, "Failed to get time, not updating"
"position. Errno: %s\n", strerror(errno));