Re: FVWM: Intercepting X11 events: from where and how

From: Scott Smedley <scottie7_at_tpg.com.au>
Date: Mon, 10 May 2004 23:46:41 +1000

> 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 majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon May 10 2004 - 07:52:54 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST