[comp.windows.x] Toolkit or Motif eating "send_event" events?

davis@3d.enet.dec.com (Peter Davis) (05/25/91)

I'm trying to write a program which will generate synthetic events and send them
to other windows on the display.  To test this, I've written a simple version of
something like xev, which just reports events that it receives.  I've found
that:

   o	If I just use XCreateWindow to create a window, I can detect all
	events on that window, whether they be genuine (ie, "send_event"
	flag off) or synthetic (ie, "send_event" flag on).

However,

   o	If I use XtCreateManagedWidget to create a drawing area widget,
	and then set event handlers on that, I get "real" events, but
	not synthetic ones.

This leads me to conclude that something in the toolkit, window manager, or
somewhere is filtering out events that have the "send_event" flag on.

Can anyone verify who is doing this?  Is there a way to turn it off?

Thanks.
-pd