From 754d00e40074caf426eecf0cb688a6f8319b3edc Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 13 May 2026 19:39:07 +0300 Subject: [PATCH] input: Drop time field from weston_pointer_motion_event Signed-off-by: Marius Vlad --- include/libweston/libweston.h | 1 - libweston/input.c | 4 +--- libweston/libinput-device.c | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h index 66dc4965b..e99ee732f 100644 --- a/include/libweston/libweston.h +++ b/include/libweston/libweston.h @@ -607,7 +607,6 @@ enum weston_pointer_motion_mask { struct weston_pointer_motion_event { uint32_t mask; - struct timespec time; struct weston_coord_global abs; struct weston_coord rel; struct weston_coord rel_unaccel; diff --git a/libweston/input.c b/libweston/input.c index 4315d6e08..3497a2efa 100644 --- a/libweston/input.c +++ b/libweston/input.c @@ -573,9 +573,7 @@ pointer_send_relative_motion(struct weston_pointer *pointer, return; resource_list = &pointer->focus_client->relative_pointer_resources; - time_usec = timespec_to_usec(&event->time); - if (time_usec == 0) - time_usec = timespec_to_usec(time); + time_usec = timespec_to_usec(time); wl_resource_for_each(resource, resource_list) { zwp_relative_pointer_v1_send_relative_motion( diff --git a/libweston/libinput-device.c b/libweston/libinput-device.c index 8e51de2e2..41e6db587 100644 --- a/libweston/libinput-device.c +++ b/libweston/libinput-device.c @@ -136,7 +136,6 @@ handle_pointer_motion(struct libinput_device *libinput_device, event = (struct weston_pointer_motion_event) { .mask = WESTON_POINTER_MOTION_REL | WESTON_POINTER_MOTION_REL_UNACCEL, - .time = time, }; event.rel = weston_coord(libinput_event_pointer_get_dx(pointer_event), libinput_event_pointer_get_dy(pointer_event));