Alexandre Julliard : winex11: Ignore EnterNotify events that are older than the last mouse wrap.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Dec 1 09:32:58 CST 2015
Module: wine
Branch: master
Commit: 49e1ba7d4ba31f2a16fa4527e8028fb876a7b026
URL: http://source.winehq.org/git/wine.git/?a=commit;h=49e1ba7d4ba31f2a16fa4527e8028fb876a7b026
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Dec 1 17:42:38 2015 +0900
winex11: Ignore EnterNotify events that are older than the last mouse wrap.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winex11.drv/mouse.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c
index 356343d..63d202c 100644
--- a/dlls/winex11.drv/mouse.c
+++ b/dlls/winex11.drv/mouse.c
@@ -1621,6 +1621,11 @@ void X11DRV_EnterNotify( HWND hwnd, XEvent *xev )
input.u.mi.time = EVENT_x11_time_to_win32_time( event->time );
input.u.mi.dwExtraInfo = 0;
+ if (is_old_motion_event( event->serial ))
+ {
+ TRACE( "pos %d,%d old serial %lu, ignoring\n", input.u.mi.dx, input.u.mi.dy, event->serial );
+ return;
+ }
send_mouse_input( hwnd, event->window, event->state, &input );
}
More information about the wine-cvs
mailing list