kadel@manta.NOSC.MIL (Rich Kadel) (12/05/90)
I spent all day trying to find out why XSendEvent would not send an event (ClientMessage) from one application to a window in another application. I'm using X11R4 on a SparcStation. I've carefully examined the parameters, verified that the window exists, and ensured that the receiving application is ready to receive the event, but it's a no-show! I have the X11R4 source and even compiled in a debuggable version of XSendEvent itself (which, by the way, does have a bug in its return status--always a 1--but seems to execute the right stuff). This problem, of course, also affects any Xlib functions that call XSendEvent, such as XIconifyWindow (doesn't work either). I've done all I can think of short of compiling the server with the debug option and possibly kludging a fix in it somewhere. I DON'T WANT IT TO COME TO THAT! Anybody have any clues? Thanks. Rich
mouse@LARRY.MCRCIM.MCGILL.EDU (12/06/90)
> I spent all day trying to find out why XSendEvent would not send an > event (ClientMessage) from one application to a window in another > application. [...] > I've done all I can think of short of compiling the server with the > debug option and possibly kludging a fix in it somewhere. I DON'T > WANT IT TO COME TO THAT! Did you use xscope to make sure that the request was actually getting sent to the server, and that all the fields are correct? That's the next thing I'd look at. (You might also run the receiving client under another xscope to find out whether the event is getting sent to it correctly, just to make sure you know who's really at fault.) der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu