[PATCH 1/3] winex11.drv: Implement grab_pointer to grab/ungrab the pointer in specified window.

Vitaliy Margolen wine-patches at kievinfo.com
Sat Jun 9 19:13:31 CDT 2007


Next series of patches re-implement mouse pointer grabbing in x11drv.
The old one won't be able to do what I need it to do.

Because there are no other known means to tell X11 to grab mouse in
particular window I have added new export. All attempts to adapt ClipCursor()
didn't work, because there were problems with finding correct window.
Besides the fact of all complicated inter-thread synchronizations.

Some parts of Wine (dinput, d3d, ddraw) can explicitly specify which window
mouse should be grabbed in. So we might as well use this information to grab
pointer in the specified window. As long as we have mechanism to free it
whenever app looses focus.

---
 dlls/winex11.drv/event.c          |    2 +
 dlls/winex11.drv/mouse.c          |   62 +++++++++++++++++++++++++++++++++++++
 dlls/winex11.drv/winex11.drv.spec |    3 ++
 dlls/winex11.drv/x11drv.h         |    4 ++-
 4 files changed, 70 insertions(+), 1 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 59add0841c33038e45b8aaba7617df0ebaf2f2ea.diff
Type: text/x-patch
Size: 4405 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070609/b736c849/59add0841c33038e45b8aaba7617df0ebaf2f2ea-0001.bin


More information about the wine-patches mailing list