Window behavior and keystroke capture

squiggly foo foo.squiggly at yandex.com
Fri Jun 12 05:24:47 UTC 2020


Hi Gary. Thank you for that!  That is exactly what I needed to test. I appreciate your help.

11.06.2020, 03:36, "Gary Jennejohn" <gljennjohn at gmail.com>:
> On Wed, 10 Jun 2020 12:05:45 -0500
> squiggly foo <foo.squiggly at yandex.com> wrote:
>
>>  Lets say that I have two GUI applications running. One running in
>>  window A and one in window B.
>>
>>  If window A is the active window (ie I clicked on window A and am
>>  typing into it), then does window B see my keystrokes as I type into
>>  window A but just ignores them? Or does window B not have access to
>>  the keystrokes at all?
>
> It seems like this should fairly easy to test.
>
> Start xev in window B and then make window A the active window and
> enter some text.
>
> If the keystrokes in window A also went to window B then xev would
> see them and report them.
>
> But that does not happen.
>
> The focus is in window A and the X server is only sending keystrokes
> to that window.
>
> --
> Gary Jennejohn


More information about the freebsd-x11 mailing list