diff options
Diffstat (limited to 'waltham-transmitter/transmitter-plugin/input.c')
-rw-r--r-- | waltham-transmitter/transmitter-plugin/input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/waltham-transmitter/transmitter-plugin/input.c b/waltham-transmitter/transmitter-plugin/input.c index e00546b..9d35f3f 100644 --- a/waltham-transmitter/transmitter-plugin/input.c +++ b/waltham-transmitter/transmitter-plugin/input.c @@ -1271,8 +1271,10 @@ fake_pointer_timer_handler(void *data) struct weston_transmitter_seat *seat = data; wl_fixed_t x, y; uint32_t time; + struct timespec timespec; - time = weston_compositor_get_time(); + weston_compositor_get_time(×pec); + time=timespec.tv_sec * 1000 + timespec.tv_nsec / 1000000; fake_pointer_get_position(seat, 18.0 / 180.0 * M_PI, &x, &y); transmitter_seat_pointer_motion(seat, time, x, y); |