> Say I wanted to intercept all X11 events, using an LD_PRELOAD method.  
> Assume that _everything_ is dynamically linked.

A very strange thing to do.

> If I redefine XSendEvent(), should I preload this into the window manager,
> or into the X server itself?  If XSendEvent() is not the function I should
> intercept, then what should I intercept?

A very strange question.

> I guess these questions boil down to two questions:
>       Who generates XEvents -- the window manager, the X server, or both?

both. Applications can also generate X events.

>       When generating XEvents, does the source use XSendEvent()?

XSendEvent is an Xlib function, so C programs would use this
interface. Other non-C GUI toolkits would use a similar interface.

What exactly are you trying to do?

Perhaps you might be interested in the 'xscope' program (not to
be confused the the Mac xscope program) which lists/logs X events.
Very powerful when combined with 'Xnest' - a favorite development
combination of mine.

Or maybe the 'xev' utility?

Curiouser & curiouser ...

SCoTT. :)
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to