[Bug 35907] Caps Lock state gets confused with multiple processes/threads

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Mar 11 21:29:53 CDT 2015


https://bugs.winehq.org/show_bug.cgi?id=35907

--- Comment #7 from Sebastian Lackner <sebastian at fds-team.de> ---
A fix was added to Wine-Staging:
https://github.com/wine-compholio/wine-staging/tree/master/patches/server-Key_State

I ran a lot of manual tests with various self-written test applications and
games, and came to the conclusion that my theory is right. Windows internally
uses a locking mechanism of the thread input keystate, and under specific
circumstances synchronizes it with the global keystate. Some things in the
patch might look weird (for example that GetKeyboardState() does _NOT_
synchronize the keystate), but this matches very exactly what Windows does.
Will try to clean up the tests during the next time, and integrate them somehow
in the wine test suite.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list