input/wayland: Use unaccelerated pointer motion (#16074)

This fixes small mouse movements being rounded down to 0.

Fix "Mouse cursor appears to have a deadzone on Wayland" (#16015)
This commit is contained in:
Colin Kinloch 2024-01-04 23:30:47 +00:00 committed by GitHub
parent 06deba24a8
commit a2057d6069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -439,8 +439,8 @@ static void handle_relative_motion(void *data,
{
gfx_ctx_wayland_data_t *wl = (gfx_ctx_wayland_data_t*)data;
wl->input.mouse.delta_x = wl_fixed_to_int(dx);
wl->input.mouse.delta_y = wl_fixed_to_int(dy);
wl->input.mouse.delta_x = wl_fixed_to_int(dx_unaccel);
wl->input.mouse.delta_y = wl_fixed_to_int(dy_unaccel);
if (wl->locked_pointer)
{