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:
parent
06deba24a8
commit
a2057d6069
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue