[Bug 5623] GetAsyncKeyState wrong if querying process doesn't have focus

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Sep 30 22:28:26 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=5623

Bruno Jesus <00cpxxx at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |00cpxxx at gmail.com

--- Comment #35 from Bruno Jesus <00cpxxx at gmail.com> 2011-09-30 22:28:26 CDT ---
After studying a bit of the X server and searching for a way to create a global
keyboard hook in X I believe that what wine is doing currently is the best we
can have and I personally consider this bug fixed.

I searched several forums and lists and everyone has the same answer that it's
not possible to create a global hook to get keyboard keys in X server because
each application has it's own message queue, differently from windows that have
only one queue (or am I wrong?).

The current wine implementation get keys/clicks from the focused wine window
and is able to share them with all other opened wine windows.

My demo application is in the comment above if anyone have some time to test.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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