Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!dog.ee.lbl.gov!ucbvax!osf.org!wwang From: wwang@osf.org ("Weidong Wang from OSF") Newsgroups: comp.windows.x.motif Subject: Re: What is the best way to iconify/deiconify? Message-ID: <9105102047.AA29302@osfsun> Date: 10 May 91 13:47:02 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 18 toml@Solbourne.COM(Tom LaStrange) wrote: > > What if the window changes state between the time you you get the property > and return it? You get another PropertyNotify event. > You should watch for and keep track of MapNotify and > UnmapNotify events if you want to track your current state. > Not true. A window can have three states: Normal, Iconic, and Withdrawn. When you unmap a window (you will get a UnmapNotify event), the window state changes from Normal/Iconic to WithDrawn, not Iconic. You can use MapNotify event to know that the window state has changed from Iconic/WithDrawn to Normal.