[comp.windows.x] A XSendEvent question

jeetu@cs.utexas.edu (Jitendra K. Maheshwari) (06/04/90)

Hi all,
	I have an application which brings up several windows, some under 
	the same toplevel shell and a few under other toplevel shells. I use
	XSendEvent in the following manner to send an event when some xyz event
	occurs .

	XSendEvent(XtDisplay(sending_widget),
			    PointerWindow, True, XtAllEvents, event);

I want the window under the mouse to get this event.

I have registered an EventHandler on the target window as follows.

XtAddEventHandler(target_window, NoEventMask, TRUE, client_message_in, NULL);

	
I am using R3/Motif on a Sparc.

The sending and receiving windows are in different toplevel shells.

The problem:
	The handler never gets invoked though SendEvent completes successfully.

	What am I doing wrong? Any help will be appreciated.

	Please respond to my email address directly.
	Thanks in advance.

	Jeetu