Re: Detecting a minimize event vs. a virtual desktop change in tk.
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Detecting a minimize event vs. a virtual desktop change in tk.

From: Donald Arseneau <asnd@triumf.ca>
Date: Tue Dec 20 2005 - 02:24:28 CET

jenglish@flightlab.com (Joe English) writes:

> Donald Arseneau wrote:

> >bind . <Unmap> {puts "unmap %W state: [wm state %W]"}
> >
> >You should get distinct "iconic" and "withdrawn".
>
> Actually, no, you shouldn't --
>
> In Tk, "iconic" means "unmapped by user's request"; "withdrawn" means
> "unmapped by program's request". A toplevel window only enters
> the "withdrawn" state via [wm withdraw].

That's a very silly definition of "iconic"!

On MSwin using an Nvidia desktop switcher, I get "withdrawn",
but on Linux I get "iconic".

-- 
Donald Arseneau                          asnd@triumf.ca
Received on Fri Dec 23 19:02:19 2005