Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!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: Re: EventMask for XSendEvent Message-ID: <26900117@m.cs.uiuc.edu> Date: 9 May 90 22:04:00 GMT References: <26900116@m.cs.uiuc.edu> Lines: 26 Nf-ID: #R:m.cs.uiuc.edu:26900116:m.cs.uiuc.edu:26900117:000:1511 Nf-From: m.cs.uiuc.edu!carroll May 9 17:04:00 1990 Thanks to RWS I now have a better handle on the problem. Here is the back ground information: I'm working on Epoch 3.2 (GNUemacs with extensions for X windows), and I'm trying to get epoch::send-client-message to work. Because of other improvments, send-client-message can now send client messages to any other X window. One thing that would be nice would be to be able to send WM client messages, such as "Iconify Window". However, I can't see how to be able to do this _and_ send "normal" client messages. I'm running on a '386 386/ix box (R3) and a Sparc OS4.0.3 (R4), both running GWM 1.6 The problem is the EventMask for the XSendEvent. If I use 0, then "normal" client messages work - I can send client messages from Epoch to itself. However, sending ICCCM messages to the root window doesn't work. If I change the EventMask to (SubstructureNotifyMask|SubstructureRedirectMask) as specified in the ICCCM docs, sending WM messages works, but sending "normal" ones doesn't. Under R3 I can reconcile these by using an EventMask of ~0. However, RWS informs me that that will generate protocol errors under R4. What is the preferred solution to this? I want to avoid either having the Elisp programmer specify the EventMask, or having two calls for the two cases. 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