Article View: comp.windows.x
Article #38007Re: Client Messages
From: Bob Scheifler
Date: Mon, 12 Mar 1990 21:12
Date: Mon, 12 Mar 1990 21:12
13 lines
1171 bytes
1171 bytes
How does one retrieve Client Messages to the Root Window?
I can't ask for them using XSelectInput, and I don't just get them.
Since you don't own the root window, you can't get events sent to "owner".
The only way is to select for some event type, and have the sending client
specify that event type in the XSendEvent call. Remember, that the event
type passed as an argument in XSendEvent can be different from type of the
event code actually stored in the event.
An alternative answer is that, unless you are a privileged client (like
a window manager), you shouldn't be using the root window in this way.
If you are a privileged client, using your own window is probably better.
Technical Details
Message-ID:
<9003122112.AA12282@expire.lcs.mit.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!rwsReferences:
<281@gazette.bcm.tmc.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: Client Messages Message-ID: <9003122112.AA12282@expire.lcs.mit.edu> Date: 12 Mar 90 21:12:39 GMT References: <281@gazette.bcm.tmc.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 13