How to Grab Key Events

Daniel Stone daniel at fooishbar.org
Mon Apr 13 07:21:53 PDT 2009


On Mon, Apr 13, 2009 at 11:20:59AM +0200, VARADHARAJAN RAVINDRANATH wrote:
>    I am a newbie in Xorg. I have a requirement wherein I need to grab
> the key events in my X11 application even though it does not have focus.
> This application in turn will do some manipulation in the received key
> and will send the updated key press event to other X11 clients using
> XSendEvent. This is some thing like a window manager implementation
> where all X11 applications will be registered as clients to my
> application. Hence, my application will be running as a background
> process. So,when Xorg receives a key press, it should NOT send the
> keypress event to the focused client (even though it has registered for
> that event). It should first send it to my application.
> 
>    It would be highly helpful if you could help me this solving this....

man XGrabKey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20090414/599ff6f4/attachment.pgp>


More information about the xorg mailing list