Path: utzoo!mnetor!uunet!husc6!mit-eddie!apollo!oj From: oj@apollo.uucp (Ellis Oliver Jones) Newsgroups: comp.windows.x Subject: Re: help Message-ID: <3a201957.d5b2@apollo.uucp> Date: 6 Feb 88 18:37:00 GMT References: <8802051638.AA21206@devnull.sun.com> Reply-To: oj@apollo.UUCP (Ellis Oliver Jones) Organization: Apollo Computer, Chelmsford, MA Lines: 15 >> How do I check if a window >> is an Icon? You can find out whether your window is mapped or not via Xlib's XGetWindowAttributes request. Being unmapped is not, strictly speaking, exactly the same thing as being iconized. However, if you're inquiring about a top level window mapped by you (by some request or toolkit operation in your program), but never unmapped by you, it's a safe bet that the window manager unmapped it. If all you want to know is whether to refrain from drawing because your window's unmapped, this is a winning strategy. If you're using Xlib instead of the toolkit (you are? fie!) you can easily solicit events using StructureNotifyMask and keep track of MapNotify/UnmapNotify events. /oj