[PATCH 1/2] winex11.drv: Only events with MOUSEEVENTF_MOVE flag should change mouse position.

Vitaliy Margolen wine-patches at kievinfo.com
Tue Dec 12 16:57:22 CST 2006


Make X button press and button release events set MOUSEEVENTF_MOVE flag.
Otherwise we might loose some event movement. However we need to check
if mouse really moved, and not send spurious mouse move messages.
Like wise we need to check if injected message did specify mouse move
flag. And if not, discount passed coordinates and use current mouse
position instead.

---
 dlls/user32/tests/input.c |   25 +++++++++++++++++++++++--
 dlls/winex11.drv/mouse.c  |   20 +++++++++++++++-----
 2 files changed, 38 insertions(+), 7 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 77f0139272de40d0e2688122d5124420826e80a9.diff
Type: text/x-patch
Size: 3933 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061212/66ee7a46/77f0139272de40d0e2688122d5124420826e80a9.bin


More information about the wine-patches mailing list