Victor Eijkhout <eijkhout_at_cs.utk.edu> writes:
> > > This doesn't work:
> >>
> >> AddToFunc NameThisDesk
> >> + "I" KillModule FvwmForm
> >> + "I" Module FvwmForm NameDesk
> >> DestroyModuleConfig NameDesk: *
> >> *NameDesk: Line left
> >> *NameDesk: Text "Name this desktop:"
> >> *NameDesk: Line expand
> >> *NameDesk: Input deskname 20 ""
> >> *NameDesk: Button quit "OK" ^M
> >> *NameDesk: Command *FvwmPager: Label * $(deskname)
> >>
> >> probably because FvwmPager: Label is a configuration, not a command.
> >>
> >> What's a better way to do it?
> >
> >You might try to restart the Pager
> >Command KillModule FvwmPager
> >Command Module FvwmPager
>
> So I tried
>
> *NameDesk: Button quit "OK" ^M
> *NameDesk: Command *FvwmPager: Label * $(deskname)
> *NameDesk: Command KillModule FvwmPager
> *NameDesk: Command Module FvwmPager
>
> I did that while on Desk #4. It renamed Desk #1 and emptied the pager
> of all other desks.
Those module commands, (the commands starting with "*"), add
up. Ie. FVWM saves all of them and then sends them to the module
when it starts.
What you might want to do is add a "DestroyModuleConfig" followed by
all the module commands for the Pager each time you restart the pager.
--
Dan Espen E-mail: dane_at_mk.telcordia.com
444 Hoes Lane Room RRC 1C-214 Phone: (732) 699-5570
Piscataway, NJ 08854
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri Mar 15 2002 - 07:57:49 GMT