[sugar] Capturing all mouse events
Benjamin M. Schwartz
Fri May 30 21:38:39 EDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
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?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Sugar-devel