[comp.windows.x] Client Messages

etaylor@krebs.bcm.tmc.edu (Eric Taylor) (03/13/90)

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.


			Eric Taylor
			Baylor College Of Medicine

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (03/13/90)

    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.