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:
Alexandros Frantzis
2017-11-16 18:20:55 +02:00
committed by Pekka Paalanen
parent 84b31f8956
commit 215bedc88b
15 changed files with 71 additions and 40 deletions
+5 -1
View File
@@ -171,10 +171,14 @@ static void
send_button(struct wl_client *client, struct wl_resource *resource,
int32_t button, uint32_t state)
{
struct timespec time;
struct weston_test *test = wl_resource_get_user_data(resource);
struct weston_seat *seat = get_seat(test);
notify_button(seat, 100, button, state);
timespec_from_msec(&time, 100);
notify_button(seat, &time, button, state);
}
static void