libweston: Use struct timespec for axis events
Change code related to axis events to use struct timespec to represent
time.
This commit is part of a larger effort to transition the Weston codebase
to struct timespec.
Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
diff --git a/compositor/screen-share.c b/compositor/screen-share.c
index 368d0cd..8b2decf 100644
--- a/compositor/screen-share.c
+++ b/compositor/screen-share.c
@@ -173,12 +173,15 @@
{
struct ss_seat *seat = data;
struct weston_pointer_axis_event weston_event;
+ struct timespec ts;
weston_event.axis = axis;
weston_event.value = wl_fixed_to_double(value);
weston_event.has_discrete = false;
- notify_axis(&seat->base, time, &weston_event);
+ timespec_from_msec(&ts, time);
+
+ notify_axis(&seat->base, &ts, &weston_event);
notify_pointer_frame(&seat->base);
}