Commit 82b1ba1f authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

winex11drv: Ignore mouse move events when position did not change only when…

winex11drv: Ignore mouse move events when position did not change only when other events are present.
parent 36db3630
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment