summaryrefslogtreecommitdiffstats
path: root/waltham-transmitter/transmitter-plugin/input.c
diff options
context:
space:
mode:
authorVeeresh Kadasani <external.vkadasani@jp.adit-jv.com>2019-08-05 10:36:28 +0900
committerVeeresh Kadasani <external.vkadasani@jp.adit-jv.com>2019-08-05 10:43:33 +0900
commit0fc0e974749f4ce35e14c23b050aa8fe693c3ce5 (patch)
tree3e503ffb936a86c9af1d76aaac4ad5d6cf3422d8 /waltham-transmitter/transmitter-plugin/input.c
parent6b673b5726dea2d2f8d39caee34d0ca850cc146e (diff)
waltham-transmitter: Migrate to weston 6.0
SPEC-2696 Change-Id: Ideeb27c8cf65e4370777a9127868ef800645be26 Signed-off-by: Veeresh Kadasani <external.vkadasani@jp.adit-jv.com>
Diffstat (limited to 'waltham-transmitter/transmitter-plugin/input.c')
-rw-r--r--waltham-transmitter/transmitter-plugin/input.c4
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(&timespec);
+ 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);