Re: wine rejecting keyboard input when window not focused

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
anywhere.

Vincent Povirk



On Fri, Aug 29, 2008 at 9:18 AM, CShadowRun <wineforum-user@xxxxxxxxxx> 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.
>
>
>
>
>
>


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux