[Wine] wine rejecting keyboard input when window not focused
madewokherd+8cd9 at gmail.com
Fri Aug 29 09:57:47 CDT 2008
You probably need to send the keystrokes from within Wine.
Wine's keyboard input code has the interesting property that it does
not care which of its windows recieves keyboard events. This is
because Windows' keyboard input model is drastically different from
that of X. So Wine only uses X to get a stream of keystrokes from the
user, which it then processes and dispatches like Windows does. Since
this process throws away the destination of keyboard events, Wine
actually uses the input focus to decide where keystrokes are supposed
to go. If none of its windows are focused, keyboard input can't go
On Fri, Aug 29, 2008 at 9:18 AM, CShadowRun <wineforum-user at winehq.org> wrote:
> I'm wondering if theres a way to disable it, I made a program which broadcasts keystrokes between multiple windows (see the source here, http://www.nomorepasting.com/getpaste.php?pasteid=19683 ) This program works fine in everything, except wine. It works fine in wine too, but only when the window is focused.
> This makes me think that wine is rejecting the keyboard input, purely because the window isn't focused. :(
> If anyone has any ideas it'd be appriciated, however don't expect me to dive into the wine source code, i don't know anything apart from basic python, and most of the above code is copied from pykey.
> Thanks in advance for any help.
More information about the wine-users