Re: IconSwallow ?

Ethan (allanon@crystaltokyo.com)
Thu, 11 Feb 1999 05:22:31 -0800 (PST)



On Wed, 10 Feb 1999, Albert Dorofeev wrote:
> 
> I was wondering if it would be really that difficult to
> add an 'IconSwallow' to the Wharf... I may be rising the
> subject that was discussed but I am really wondering
> why it is not there yet. Is swallowing an icon window
> it really different from swallowing a real window? 
> I bet I can find a use for it.

The trick here is that AfterStep throws away all knowledge of a window 
that has been unmapped.  This allows reparenting (swallowing) of windows 
by Wharf.  However, the same trick doesn't work for icons, as AfterStep 
generally is the owner of the icon window.  If AS destroys the window 
we're trying to reparent ... there isn't much point. :)

I imagine the icon you want to swallow is not one that AfterStep created.  
Licq maybe?  A WM app?  In this case, it's not too hard - Wharf could 
determine if the window is controlled by the app in question, and only 
swallow the icon if it is.

BTW, your mail was sent as an attachment.

----
Ethan Fischer
allanon@crystaltokyo.com
http://members.xoom.com/allanon1