Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!apple!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU Newsgroups: comp.windows.x Subject: Re: getting type from XID Message-ID: <8905111240.AA00703@expire.lcs.mit.edu> Date: 11 May 89 12:40:22 GMT References: <1049@quintus.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 14 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.