winex11/user32 - Fix problems with missing KEYBOARD and MOUSE hardware messages.

Peter Dons Tychsen donpedro at tdcadsl.dk
Thu Aug 2 15:54:00 CDT 2007


Hello Wine!

Wine incorrectly removes all keyboard focus from an X window when the
win32 window has the style WS_DISABLED set. This causes clients which
have subscribed to HOOKs for the hardware never to get their events
(notable client is Direct-X dinput). This in turn causes some games to
fail.

I have tested thoroughly with Windows-XP, were i have noticed that the
HOOKs are called irrelevant of the state of any windows. This patch
fixes this. Note that i have inserted a check into user32 so that
windows with the WS_DISABLED bit don't get mouse or keyboard events, now
that the keyboard is always active.

This patch fixes among others the initial focus problem for the free
game "Wild Metal": http://www.rockstargames.com/classics/

Cheers,

/pedro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-When-a-window-is-disabled-the-window-should-still-r.patch
Type: application/mbox
Size: 2855 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070802/35768398/0001-When-a-window-is-disabled-the-window-should-still-r.bin


More information about the wine-patches mailing list