winex11drv: Ignore mouse move events when position did not change only when other events are present.

oldstable
Vitaliy Margolen 2007-10-04 06:54:18 -06:00 committed by Alexandre Julliard
parent 36db3630ec
commit 82b1ba1f95
1 changed files with 5 additions and 0 deletions

View File

@ -283,6 +283,11 @@ void X11DRV_send_mouse_input( HWND hwnd, DWORD flags, DWORD x, DWORD y,
{
pt.x = x;
pt.y = y;
wine_tsx11_lock();
if (cursor_pos.x == x && cursor_pos.y == y &&
(flags & ~(MOUSEEVENTF_MOVE | MOUSEEVENTF_ABSOLUTE)))
flags &= ~MOUSEEVENTF_MOVE;
wine_tsx11_unlock();
}
}
else if (flags & MOUSEEVENTF_MOVE)