diff --git a/patches/user32-rawinput-mouse/0002-winex11-Clear-the-MOUSEEVENTF_MOVE-flag-when-accumul.patch b/patches/user32-rawinput-mouse/0002-winex11-Clear-the-MOUSEEVENTF_MOVE-flag-when-accumul.patch index d80a8c14..a4fd4600 100644 --- a/patches/user32-rawinput-mouse/0002-winex11-Clear-the-MOUSEEVENTF_MOVE-flag-when-accumul.patch +++ b/patches/user32-rawinput-mouse/0002-winex11-Clear-the-MOUSEEVENTF_MOVE-flag-when-accumul.patch @@ -1,18 +1,18 @@ -From 7a0030874b52ffdb0324b8f114190e909ee572cd Mon Sep 17 00:00:00 2001 +From 9ff19d91c8b7d679795f154ceb6b6cbcacaa71a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Fri, 8 Mar 2024 11:08:53 +0100 -Subject: [PATCH 2/7] winex11: Clear the MOUSEEVENTF_MOVE flag when - accumulating motion. +Subject: [PATCH] winex11: Clear the MOUSEEVENTF_MOVE flag when accumulating + motion. --- dlls/winex11.drv/mouse.c | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c -index 7293480b635..45619d4970d 100644 +index 6107b1679be..21fb38b3186 100644 --- a/dlls/winex11.drv/mouse.c +++ b/dlls/winex11.drv/mouse.c -@@ -1703,19 +1703,17 @@ static BOOL map_raw_event_coords( XIRawEvent *event, INPUT *input ) +@@ -1699,19 +1699,17 @@ static BOOL map_raw_event_coords( XIRawEvent *event, INPUT *input ) values++; } @@ -20,7 +20,7 @@ index 7293480b635..45619d4970d 100644 - input->mi.dy = round( y->value ); - - TRACE( "event %f,%f value %f,%f input %d,%d\n", x_value, y_value, x->value, y->value, -- (int)input->mi.dx, (int)input->mi.dy ); +- input->mi.dx, input->mi.dy ); - - x->value -= input->mi.dx; - y->value -= input->mi.dy; @@ -36,13 +36,13 @@ index 7293480b635..45619d4970d 100644 + else + { + TRACE( "event %f,%f value %f,%f, input %d,%d\n", x_value, y_value, x->value, y->value, -+ (int)input->mi.dx, (int)input->mi.dy ); ++ input->mi.dx, input->mi.dy ); + x->value -= input->mi.dx; + y->value -= input->mi.dy; } return TRUE; -@@ -1743,6 +1741,7 @@ static BOOL X11DRV_RawMotion( XGenericEventCookie *xev ) +@@ -1739,6 +1737,7 @@ static BOOL X11DRV_RawMotion( XGenericEventCookie *xev ) input.mi.dx = 0; input.mi.dy = 0; if (!map_raw_event_coords( event, &input )) return FALSE; @@ -51,5 +51,5 @@ index 7293480b635..45619d4970d 100644 NtUserSendHardwareInput( 0, 0, &input, 0 ); return TRUE; -- -2.43.0 +2.47.2 diff --git a/staging/upstream-commit b/staging/upstream-commit index a74894b9..6e807b9d 100644 --- a/staging/upstream-commit +++ b/staging/upstream-commit @@ -1 +1 @@ -f7503d0a996ae1243dd6c87b39a9143624a80465 +e646263a6f048156d5cb9c63b094cd9c80d5bfb6