how to log the mouse events in x window

Peter Hutterer mailinglists at who-t.net
Mon Oct 15 22:35:37 PDT 2007


sri wrote:
> hi..
> how to log the mouse events .in the system...
> is there any function to do that...
> using xquerypointer() is it possible to the mouse events..


you seem to repeat the same question.

use XSelectEvent to get events on a given window. writing a global event 
logger requires you run through the window hierarchy and register at 
every single window.

Cheers,
   Peter



More information about the xorg mailing list