KeyPress event - Xwindows

This is a discussion on KeyPress event - Xwindows ; Hi! Why xev doesn't receive KeyPress event when it is attached to some existing windows (e.g. xterm)? Though it does XSelectInput with the KeyPressMask as a parameter. Thanks, ab...

+ Reply to Thread
Results 1 to 2 of 2

Thread: KeyPress event

  1. KeyPress event

    Hi!

    Why xev doesn't receive KeyPress event when it is attached to some
    existing windows (e.g. xterm)? Though it does XSelectInput with the
    KeyPressMask as a parameter.

    Thanks,

    ab

  2. Re: KeyPress event

    Andrei Bejenari wrote:
    >Hi!
    >
    >Why xev doesn't receive KeyPress event when it is attached to some
    >existing windows (e.g. xterm)? Though it does XSelectInput with the
    >KeyPressMask as a parameter.
    >
    >Thanks,
    >
    >ab


    Xev won't report an event if the window to which it is attached does
    not receive the event, and there are many reasons why this could happen.

    The answer depends on the focus model, the position of the mouse cursor,
    the focus window, and the presence or absence of grabs. See the xlib
    documentation.


+ Reply to Thread