libweston: Use struct timespec for touch down events

Change code related to touch down 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:58 +02:00
committed by Pekka Paalanen
parent 47e79c860b
commit 9448deb073
10 changed files with 57 additions and 33 deletions
+2 -1
View File
@@ -1584,7 +1584,8 @@ pointer_move_workspace_grab_button(struct weston_pointer_grab *grab,
}
static void
touch_nope_grab_down(struct weston_touch_grab *grab, uint32_t time,
touch_nope_grab_down(struct weston_touch_grab *grab,
const struct timespec *time,
int touch_id, wl_fixed_t sx, wl_fixed_t sy)
{
}
+2 -1
View File
@@ -463,7 +463,8 @@ click_to_activate_binding(struct weston_pointer *pointer,
}
static void
touch_to_activate_binding(struct weston_touch *touch, uint32_t time,
touch_to_activate_binding(struct weston_touch *touch,
const struct timespec *time,
void *data)
{
if (touch->grab != &touch->default_grab)