Fixed relative motion having desktop mouse scale on Wayland

Fixes https://github.com/libsdl-org/SDL/issues/13753
This commit is contained in:
Sam Lantinga
2025-08-25 11:47:18 -07:00
parent 385715c0dd
commit b13416d74f

View File

@@ -1243,8 +1243,8 @@ static void relative_pointer_handle_relative_motion(void *data,
seat->pointer.pending_frame.have_relative = true;
seat->pointer.pending_frame.relative.dx = dx;
seat->pointer.pending_frame.relative.dy = dy;
seat->pointer.pending_frame.relative.dx_unaccel = dx;
seat->pointer.pending_frame.relative.dy_unaccel = dy;
seat->pointer.pending_frame.relative.dx_unaccel = dx_unaccel;
seat->pointer.pending_frame.relative.dy_unaccel = dy_unaccel;
seat->pointer.pending_frame.timestamp_ns = Wayland_AdjustEventTimestampBase(SDL_US_TO_NS(((Uint64)time_hi << 32) | (Uint64)time_lo));
if (wl_pointer_get_version(seat->pointer.wl_pointer) < WL_POINTER_FRAME_SINCE_VERSION) {