FVWM: Re: FvwmIconMan ?

From: David S. Goldberg <dsg_at_linus.mitre.org>
Date: 13 Oct 1997 15:47:21 -0400

> [...] when I invoke IconMan I get my first manager showing what it's
> supposed to show and the second instance showing nothing except an
> FvwmIconMan button. I'm still trying to figure out if IconMan is
> showing the other IconMan window or whether that's a title button...

You could verify that by setting a different title for each manager
window (see below) and see which ends up in there.

> FvwmIconMan*nummanagers 2
> FvwmIconMan*1*resolution page
> FvwmIconMan*2*resolution global

> It gets invoked with "Module FvwmIconMan" currently.

That looks like the right way to do it. From the FvwmIconMan man
page:

       If a window could be handled by more than one manager, then
       the manager with the lowest id gets it.

That quote is towards the end of the section on show and dontshow
options so it may not be relevant outside of those options. However,
I think that this should mean the first manager gets the icons for the
current page and the second manager everything else modulo show and
dontshow specs because the current page manager has a lower id#. If
that's not what's happening I would consider it a bug.

> Finally, it seems that FvwmIconMan opens all windows it's configured
> for when it's invoked. This is correct? It would be nice to have
> each one able to be invoked separately, since ultimately I'm trying
> to Swallow the IconMen into FvwmButtons... Works great for one
> IconMan, but two's been quite the headache.

No need to invoke them separately. You just have to be a bit clever
with FvwmButtons. I came up with the following:

*FvwmButtons(104x2, Frame 0, Swallow(NoClose,UseOld) "Emacs Icons" \
    "Module FvwmIconMan")
*FvwmButtons(104x2, Frame 0, Swallow(NoClose,UseOld) "XTerm Icons" Nop)
*FvwmButtons(104x2, Frame 0, Swallow(NoClose,UseOld) "Misc Icons" Nop)

*FvwmIconMan*1*title "Emacs Icons"
*FvwmIconMan*2*title "XTerm Icons"
*FvwmIconMan*3*title "Misc Icons"

They key is to use UseOld and Nop. The first FvwmButtons line starts
FvwmIconMan which maps all the managers. That first line waits for
the first manager to map and swallows it. When the second line gets
processed, the UseOld catches the existence of the second manager but
doesn't do anything other than swallow (since function is Nop). Same
for the third and any others that you may have.

--
Dave Goldberg
Post: The Mitre Corporation\MS B305\202 Burlington Rd.\Bedford, MA 01730
Phone: 781-271-3887
Email: dsg_at_mitre.org
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Mon Oct 13 1997 - 14:47:37 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST