[PATCH] dinput: Use window subclassing to monitor focus looses away from monitored windows. [try 3]

Vitaliy Margolen wine-patches at kievinfo.com
Sat Jun 9 18:47:07 CDT 2007


If window is not foreground anymore, unacquire the device. But instead of
checking for each message, check for messages sent when window becomes
background.

Changes from previous tries:
- Use window subclassing instead of wndproc hook
- Don't just use messages, check if window is foreground, and if not
unacquire device.
---
 dlls/dinput/device.c         |    5 +++
 dlls/dinput/dinput_main.c    |   78 ++++++++++++++++++++++++++++++++++++++++++
 dlls/dinput/dinput_private.h |    2 +
 dlls/dinput/tests/mouse.c    |    1 -
 4 files changed, 85 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 68c6679490ed0fe4fdb314c65a2515334dcb9076.diff
Type: text/x-patch
Size: 4974 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070609/8e43c802/68c6679490ed0fe4fdb314c65a2515334dcb9076.bin


More information about the wine-patches mailing list