Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!bloom-beacon!SUN.COM!dshr From: dshr@SUN.COM (David Rosenthal) Newsgroups: comp.windows.x Subject: Re: window iconfied? Message-ID: <8906122331.AA01098@devnull.sun.com> Date: 12 Jun 89 23:26:51 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 27 > Is there a way for the application to check if the top level window > is iconified or not. I tried to use XGetWMHints to get the > window manager hints and check if the field initial_state > is set to "IconicState". But that did not work. That field was > never changed by the window manager. > The Inter-Client Communications Conventions Manual specifies this in section 4.2.5: A non-override-redirect window that is not Withdrawn will be in Normal state if it is mapped, and in Iconic state if it is unmapped. This will be true even if the window has been reparented; the window manager will unmap the window as well as its parent when switching to Iconic state. The client can elect to be notified of these state changes by selecting for StructureNotify on the top-level window. It will receive UnmapNotify when it goes Iconic, and MapNotify when it goes Normal. Unfortunately, it will be some time until all window managers adhere to the ICCCM conventions. Until then, the answer is that there is no reliable way. David.