diff options
author | Alexandros Frantzis <alexandros.frantzis@collabora.com> | 2017-11-24 18:01:46 +0200 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2017-11-27 11:42:07 +0200 |
commit | 84b31f895682a2f2627934d79ade15e573583ae9 (patch) | |
tree | 7b258b7724947211ba8d133b80b6c934c84cdc59 /desktop-shell | |
parent | e6ac2afa5659276e4050352a5d7626c6903fbce6 (diff) |
libweston: Use struct timespec for motion events
Change code related to motion 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>
Diffstat (limited to 'desktop-shell')
-rw-r--r-- | desktop-shell/exposay.c | 3 | ||||
-rw-r--r-- | desktop-shell/shell.c | 12 |
2 files changed, 10 insertions, 5 deletions
diff --git a/desktop-shell/exposay.c b/desktop-shell/exposay.c index b11a7f79..15b86863 100644 --- a/desktop-shell/exposay.c +++ b/desktop-shell/exposay.c @@ -349,7 +349,8 @@ exposay_focus(struct weston_pointer_grab *grab) } static void -exposay_motion(struct weston_pointer_grab *grab, uint32_t time, +exposay_motion(struct weston_pointer_grab *grab, + const struct timespec *time, struct weston_pointer_motion_event *event) { struct desktop_shell *shell = diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 55380417..62dfa450 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -1482,7 +1482,8 @@ constrain_position(struct weston_move_grab *move, int *cx, int *cy) } static void -move_grab_motion(struct weston_pointer_grab *grab, uint32_t time, +move_grab_motion(struct weston_pointer_grab *grab, + const struct timespec *time, struct weston_pointer_motion_event *event) { struct weston_move_grab *move = (struct weston_move_grab *) grab; @@ -1577,7 +1578,8 @@ struct weston_resize_grab { }; static void -resize_grab_motion(struct weston_pointer_grab *grab, uint32_t time, +resize_grab_motion(struct weston_pointer_grab *grab, + const struct timespec *time, struct weston_pointer_motion_event *event) { struct weston_resize_grab *resize = (struct weston_resize_grab *) grab; @@ -1767,7 +1769,8 @@ busy_cursor_grab_focus(struct weston_pointer_grab *base) } static void -busy_cursor_grab_motion(struct weston_pointer_grab *grab, uint32_t time, +busy_cursor_grab_motion(struct weston_pointer_grab *grab, + const struct timespec *time, struct weston_pointer_motion_event *event) { weston_pointer_move(grab->pointer, event); @@ -3443,7 +3446,8 @@ terminate_binding(struct weston_keyboard *keyboard, uint32_t time, } static void -rotate_grab_motion(struct weston_pointer_grab *grab, uint32_t time, +rotate_grab_motion(struct weston_pointer_grab *grab, + const struct timespec *time, struct weston_pointer_motion_event *event) { struct rotate_grab *rotate = |