[PATCH 3/3] x11drv: Use internal cached cursor position for GetCursorPos.

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


Change log:
    x11drv: Use internal cached cursor position for GetCursorPos.

Query X directly only when cursor is outside process' windows.

Part two of fixing result of GetCursorPos() inside hook handler. Now this
test should work the same way as on windows.

However we have a problem with synchronizing this cached cursor position
between processes. To solve that we can either share that information
between processes or query X the same we did before, if cursor is outside
process' windows. Here I chose to do later.

---
 dlls/winex11.drv/event.c  |    4 ++-
 dlls/winex11.drv/mouse.c  |   53 ++++++++++++++++++++++++++++-----------------
 dlls/winex11.drv/window.c |    2 +-
 dlls/winex11.drv/x11drv.h |    1 +
 4 files changed, 37 insertions(+), 23 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: e74cc969d7c580bd01a89dc6964067316d9449cc.diff
Type: text/x-patch
Size: 5011 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061013/ab7f3fcd/e74cc969d7c580bd01a89dc6964067316d9449cc.bin


More information about the wine-patches mailing list