[PATCH 2/3] x11drv: Update internal cached cursor_pos after calling hook chain.

Vitaliy Margolen wine-patch at kievinfo.com
Fri Oct 13 23:39:12 CDT 2006


Change log:
    x11drv: Update internal cached cursor_pos after calling hook chain.

Interactive test(s) showed that GetCursorPos() inside LL mouse hook handler
will return old position while hook information will contain new position.
This is the first step in archiving this goal.

Added last update time to keep out-of-order events from updating cached cursor
position. We need to check only actual mouse events, not injected ones. Simple
tests indicated that native ignores passed time. So use of SetCursorPos is
appropriate.

---
 dlls/winex11.drv/mouse.c |   23 ++++++++++++++---------
 1 files changed, 14 insertions(+), 9 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5cad29941c307b5081eba52aca2ca2c1bbe12302.diff
Type: text/x-patch
Size: 2656 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061013/5afb2371/5cad29941c307b5081eba52aca2ca2c1bbe12302.bin


More information about the wine-patches mailing list