[sugar] Capturing all mouse events

Benjamin M. Schwartz bmschwar at fas.harvard.edu
Sun Jun 1 21:05:48 EDT 2008


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

Martin Dengler wrote:
| On Fri, May 30, 2008 at 09:38:39PM -0400, Benjamin M. Schwartz wrote:
|>
|> Does anyone know how to capture all mouse events?
|
| In trying to do this with pygtk, we both have run into gtk bug
| #156948[1] - for the record/to close the loop, we tried calling
| add_filter() on gtk.gdk.get_default_root_window()'s returned
| gtk.gdk.Window. This should, in theory, give us all events[2]. But the
| bug prevents the information from being useful, and it's not clear
| that we're really getting all events[3].

I've been trying to use the RECORD extension, which provides access to ALL
input events in a simple way.  Unfortunately, I can't seem to load the
RECORD extension.  I have added the line

Load "record"

to my xorg.conf, and my Xorg.0.log now shows a line

(II) Loading extension RECORD

but xdpyinfo doesn't show RECORD in its list of loaded extensions.

Why won't Record load?

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

iEYEARECAAYFAkhDR2wACgkQUJT6e6HFtqRGGgCfUCz/95yQa2/AwLAe5d3b2oYh
W0YAnAj6pO/BpuXtMJzfL2DhkWvyB5Yy
=7Uae
-----END PGP SIGNATURE-----


More information about the Sugar mailing list