Skip to content

Commit

Permalink
input/wayland: Use unaccelerated pointer motion (#16074)
Browse files Browse the repository at this point in the history
This fixes small mouse movements being rounded down to 0.

Fix "Mouse cursor appears to have a deadzone on Wayland" (#16015)
  • Loading branch information
ColinKinloch authored Jan 4, 2024
1 parent 06deba2 commit a2057d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions input/common/wayland_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit a2057d6

Please sign in to comment.