mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-20 19:38:18 +02:00
input: Drop time field from weston_pointer_motion_event
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
parent
47a3823672
commit
754d00e400
3 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue