Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!m.cs.uiuc.edu!carroll From: carroll@m.cs.uiuc.edu Newsgroups: comp.windows.x Subject: EventMask for XSendEvent Message-ID: <26900116@m.cs.uiuc.edu> Date: 8 May 90 23:47:00 GMT Lines: 23 Nf-ID: #N:m.cs.uiuc.edu:26900116:000:1192 Nf-From: m.cs.uiuc.edu!carroll May 8 18:47:00 1990 I'm having problems with Client Messages and XSendEvent. The code works on a SysV 11R3 system, but not on Sun-3's or Sparcs with SunOS4.0.3 & 11R4. In R3, the following sends off the Client Message: XSendEvent(xr->dpy,xr->id,False,(unsigned long)~0L,&ev); Under R4, neither that nor XSendEvent(xr->dpy,xr->id,False,(unsigned long)-1L,&ev); send the message out. XSendEvent reports True as a result, but the clients on the other end never receive the events, even though I've verified that they receive other clients events. In desperation, I tried the following: XSendEvent(xr->dpy,xr->id,False, SubstructureNotifyMask | SubstructureRedirectMask, ,&ev); That works, but only for messages to the window manager, not for a general Client Message receiver (which does not have either of those events selected). What I want to know is why I can't send it with _all_ the event mask bits set? Was something changed here from R3 to R4? Thanks! Alan M. Carroll Barbara/Marilyn in '92 : carroll@cs.uiuc.edu + This time, why not choose the better halves? Epoch Development Team CS Grad / U of Ill @ Urbana ...{ucbvax,pur-ee,convex}!cs.uiuc.edu!carroll