pds@quintus.UUCP (Peter Schachte) (05/11/89)
Is there any way to determine the type of an X resource given the XID (and display, of course)? The XWMHints struct contains a bare XID, and my program needs to find out what kind of XID it is. Also, there's a DRAWABLE property type, and it would be nice to be able to find out whether one of these is a pixmap or window. -- -Peter Schachte pds@quintus.uucp ...!sun!quintus!pds
rws@EXPO.LCS.MIT.EDU (05/11/89)
The XWMHints struct contains a bare XID, and my program needs to find out what kind of XID it is. It should always be a Window. The ICCCM states this. Also, there's a DRAWABLE property type, and it would be nice to be able to find out whether one of these is a pixmap or window. There's no wonderful way to determine this, that I can think of off-hand. You probably have to try a window-operation (e.g. XGetWindowAttributes) and see if it fails. You'll have to install an error handler while you do this.