Module: wine Branch: master Commit: 82b1ba1f95d37ff5d7c836210b3e895200d9f06e URL: http://source.winehq.org/git/wine.git/?a=commit;h=82b1ba1f95d37ff5d7c836210b...
Author: Vitaliy Margolen wine-patches@kievinfo.com Date: Thu Oct 4 06:54:18 2007 -0600
winex11drv: Ignore mouse move events when position did not change only when other events are present.
---
dlls/winex11.drv/mouse.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c index f0be019..6624c56 100644 --- a/dlls/winex11.drv/mouse.c +++ b/dlls/winex11.drv/mouse.c @@ -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)