Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!jeetu From: jeetu@cs.utexas.edu (Jitendra K. Maheshwari) Newsgroups: comp.windows.x Subject: A XSendEvent question Keywords: XSendEvent Eventhandling ClientMessage ICCM AddEventHandler Message-ID: <8769@cs.utexas.edu> Date: 4 Jun 90 10:41:41 GMT Sender: news@cs.utexas.edu Lines: 31 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