in reply to Mimicking UNIX Eyes

The application you used is xeyes. You can get the source code for the ubuntu package from http://archive.ubuntu.com/ubuntu/pool/main/x/xeyes/xeyes_1.0.1.orig.tar.gz, which might give you a clue as to some of the mechanics involved.


@_=qw; Just another Perl hacker,; ;$_=q=print "@_"= and eval;

Replies are listed 'Best First'.
Re^2: Mimicking UNIX Eyes
by gmargo (Hermit) on Dec 17, 2009 at 23:35 UTC

    That is an excellent idea, so I did just that. The source is included in the x11-apps package. I got the 8.04/hardy source http://packages.ubuntu.com/hardy/x11-apps.

    My crude analysis is that xeyes polls the mouse position. It polls frequently when there is mouse activity but then backs off on the polling interval when there is no activity. There is no hook into a mouse handler.

Re^2: Mimicking UNIX Eyes
by merrymonk (Hermit) on Dec 17, 2009 at 15:33 UTC
    Thanks to everyone. I will pursue this further.