[sugar] Capturing all mouse events

Benjamin M. Schwartz bmschwar at fas.harvard.edu
Fri May 30 21:38:39 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Does anyone know how to capture all mouse events?  I am trying to get all
mouse button up/down events, and maybe even all motion events.  I have
tried using gdk to listen to all events on the root window, but it doesn't
seem to capture mouse events.

It seems like the right way might be to use Xlib, or to hook into the
window manager, or the X driver, or just listen to /dev/input/mouse0.  I
don't know much about any of these.  What would you do?

- --Ben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhArB8ACgkQUJT6e6HFtqSRSQCfatqMr9Ksdn204nEtaH89dV8r
kp8AnAxkPIq/bqnUJENnBze/GFMSgkXt
=IdMQ
-----END PGP SIGNATURE-----


More information about the Sugar mailing list