winex11: Ignore EnterNotify events that are older than the last mouse wrap.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Alexandre Julliard 2015-12-01 17:42:38 +09:00
parent 9d237f97fc
commit 49e1ba7d4b
1 changed files with 5 additions and 0 deletions

View File

@ -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 );
}