[PATCH 3/3] dinput: Use WINDPROC hook to monitor focus looses away
from monitored windows. [try 2]
Vitaliy Margolen
wine-patches at kievinfo.com
Sun Jun 3 22:45:58 CDT 2007
This is required for dinput to release mouse when app looses focus.
In this case I'm using single hook that handles multiple devices.
Change from try1:
Ignore hook message if it's not WM_KILLFOCUS - no need to iterate
through all the device for the wrong message.
---
dlls/dinput/dinput_main.c | 78 ++++++++++++++++++++++++++++++++++++++++++
dlls/dinput/dinput_private.h | 2 +
dlls/dinput/mouse.c | 2 +
dlls/dinput/tests/mouse.c | 1 -
4 files changed, 82 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cbed81ab8e5ea0d99ead391caabaef29af77a9bc.diff
Type: text/x-patch
Size: 4829 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070603/5d9d0de1/cbed81ab8e5ea0d99ead391caabaef29af77a9bc.bin
More information about the wine-patches
mailing list