> > Another way would be to listen to all events sent through X, and act > based on the mouse events. VNC does something similar. > See the 'record_demo.py' example that comes with python-xlib.