getting all kbd events

Nokan Emiro uzleepito at gmail.com
Thu Jul 9 02:18:18 PDT 2009


On Thu, Jul 9, 2009 at 12:01 AM, Peter Hutterer <peter.hutterer at who-t.net>wrote:

> On Wed, Jul 08, 2009 at 10:24:20PM +0200, Nokan Emiro wrote:
>
> > Is Xi2 able to deliver me key events when an XGrabKeyboard() by a
> > different client is in effect?
>
> no. that's kinda the point of grab (amongst other things).
>
>
Wrong news...

If so, then what is the way of writing an X client, that can get all the key
events?


For example:  how would you write a universal macro recorder?

How would you write a keylogger in X level?

How would you write a task manager, that always gets the focus when the
 user presses Ctrl-Alt-T ?


All these apps have to get all the key events even if someone else
grabbed the keyboard.  For example if VNC (or any other remote desktop)
clients, virtual machine console apps, or such programs grab the keyboard,
I think it should be possible to record the users activity...

-- 
Uzlee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20090709/f2c38a82/attachment.html>


More information about the xorg mailing list