From 49e1ba7d4ba31f2a16fa4527e8028fb876a7b026 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 1 Dec 2015 17:42:38 +0900 Subject: [PATCH] winex11: Ignore EnterNotify events that are older than the last mouse wrap. Signed-off-by: Alexandre Julliard --- 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 356343ddef5..63d202cb5da 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 ); }