libweston: Use struct timespec for button events
Change code related to button 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
84b31f8956
commit
215bedc88b
@@ -159,8 +159,11 @@ ss_seat_handle_button(void *data, struct wl_pointer *pointer,
|
||||
uint32_t state)
|
||||
{
|
||||
struct ss_seat *seat = data;
|
||||
struct timespec ts;
|
||||
|
||||
notify_button(&seat->base, time, button, state);
|
||||
timespec_from_msec(&ts, time);
|
||||
|
||||
notify_button(&seat->base, &ts, button, state);
|
||||
notify_pointer_frame(&seat->base);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user