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>
This commit is contained in:
committed by
Pekka Paalanen
parent
215bedc88b
commit
80321942e7
@@ -173,12 +173,15 @@ ss_seat_handle_axis(void *data, struct wl_pointer *pointer,
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user