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
@@ -1571,7 +1571,7 @@ touch_move_grab_motion(struct weston_touch_grab *grab, uint32_t time,
|
||||
|
||||
static void
|
||||
pointer_move_workspace_grab_button(struct weston_pointer_grab *grab,
|
||||
uint32_t time, uint32_t button,
|
||||
const struct timespec *time, uint32_t button,
|
||||
uint32_t state_w)
|
||||
{
|
||||
if (BTN_LEFT == button &&
|
||||
|
||||
@@ -450,7 +450,8 @@ activate_binding(struct weston_seat *seat,
|
||||
}
|
||||
|
||||
static void
|
||||
click_to_activate_binding(struct weston_pointer *pointer, uint32_t time,
|
||||
click_to_activate_binding(struct weston_pointer *pointer,
|
||||
const struct timespec *time,
|
||||
uint32_t button, void *data)
|
||||
{
|
||||
if (pointer->grab != &pointer->default_grab)
|
||||
|
||||
Reference in New Issue
Block a user