input: Remove notify_motion_absolute

We're now able to use the mask to pass the proper type so need for
a specialized version.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2026-04-21 11:52:34 +03:00
parent f9c1a4bf5d
commit ce2f53a2f9
6 changed files with 5 additions and 19 deletions

View file

@ -1291,7 +1291,7 @@ rdp_translate_and_notify_mouse_position(RdpPeerContext *peerContext, UINT16 x, U
peerContext->item.seat,
WESTON_POINTER_MOTION_ABS,
&pos, NULL, NULL);
notify_motion_absolute(&event);
notify_motion(&event);
return TRUE;
}
return FALSE;
@ -1530,7 +1530,7 @@ xf_extendedMouseEvent(rdpInput *input, UINT16 flags, UINT16 x, UINT16 y)
weston_pointer_motion_event_init(&event, &time, peerContext->item.seat,
WESTON_POINTER_MOTION_ABS,
&pos, NULL, NULL);
notify_motion_absolute(&event);
notify_motion(&event);
need_frame = true;
}

View file

@ -455,7 +455,7 @@ vnc_pointer_event(struct nvnc_client *client, uint16_t x, uint16_t y,
weston_pointer_motion_event_init(&event, &time, peer->seat,
WESTON_POINTER_MOTION_ABS,
&pos, NULL, NULL);
notify_motion_absolute(&event);
notify_motion(&event);
}
changed_button_mask = peer->last_button_mask ^ button_mask;

View file

@ -1722,7 +1722,7 @@ input_handle_motion(void *data, struct wl_pointer *pointer,
weston_pointer_motion_event_init(&event, &ts, &input->base,
WESTON_POINTER_MOTION_ABS,
&pos, NULL, NULL);
notify_motion_absolute(&event);
notify_motion(&event);
want_frame = true;
}

View file

@ -253,9 +253,6 @@ notify_keyboard_focus_out(struct weston_seat *seat);
void
notify_motion(const struct weston_pointer_motion_event *event);
void
notify_motion_absolute(const struct weston_pointer_motion_event *event);
void
notify_modifiers(struct weston_seat *seat, uint32_t serial);

View file

@ -2284,17 +2284,6 @@ run_modifier_bindings(struct weston_seat *seat, uint32_t old, uint32_t new)
}
}
WL_EXPORT void
notify_motion_absolute(const struct weston_pointer_motion_event *event)
{
struct weston_seat *seat = event->base.seat;
struct weston_compositor *ec = seat->compositor;
struct weston_pointer *pointer = weston_seat_get_pointer(seat);
weston_compositor_wake(ec);
pointer->grab->interface->motion(pointer->grab, event);
}
static unsigned int
peek_next_activate_serial(struct weston_compositor *c)
{

View file

@ -178,7 +178,7 @@ handle_pointer_motion_absolute(
weston_pointer_motion_event_init(&event, &time, device->seat,
WESTON_POINTER_MOTION_ABS,
&pos, NULL, NULL);
notify_motion_absolute(&event);
notify_motion(&event);
return true;
}