global key event callback in X?

Daniel Stone daniel at fooishbar.org
Wed Jun 27 02:32:45 PDT 2007


On Wed, Jun 27, 2007 at 11:17:08AM +0200, Stefan Kombrink wrote:
> Question:
> -----------
> 
>  Is there any way to catch a sort-of global X key press event?
> After looking at the docs I've got the impression that events (like in Qt) are 
> bound to a window and not received if that window isn't visible at all.
> (For instance I tried to handle events for the root window, but it doesn't 
> receive any)
> Is there a way to handle key events regardless which window is focussed but 
> also without loosing 'em?

On newer X servers, you can use an XSync counter, to check the idle
time.

Cheers,
Daniel



More information about the xorg mailing list