Re: FVWM: Changing Decor in a Function

From: Martin Cartwright <M.Cartwright_at_Queens-Belfast.AC.UK>
Date: Mon, 20 Jan 1997 10:41:08 GMT

=> From: lar3ry gensch <gensch_at_zk3.dec.com>
=> Subject: Re: FVWM: Changing Decor in a Function
=>
=> Martin Cartwright wrote:
=> >
=> > if STICKY:
=> > Stick
=> > ChangeDecor "Default"
=> > else
=> > Stick
=> > ChangeDecor "stickydecor"
=> > endif
=>
=> Add these lines to your .fvwm2rc file:
=>
=> #########################################################
=> DestroyFunc SwitchDecor
=> AddToFunc SwitchDecor
=> + "I" StickyDecor
=>
=> DestroyFunc StickyDecor
=> AddToFunc StickyDecor
=> + "I" ChangeDecor "Sticky"
=> + "I" DestroyFunc SwitchDecor
=> + "I" AddToFunct SwitchDecor "I" DefaultDecor
=>
=> DestroyFunc DefaultDecor
=> AddToFun DefaultDecor
=> + "I" ChangeDecor "Default"
=> + "I" DestroyFunc SwitchDecor
=> + "I" AddToFunct SwitchDecor "I" StickyDecor
=>
=> ChangeDecor "Default"
=> #########################################################
=>
=> When you want to toggle from one to another, just execute SwitchDecor.
=>
=> --
Okay, I added that in and it works just fine. I have to be careful which
windows I use it on though as I have a different decor for xterms so that
if I use this function, they'll revert to Default decor instead of xterm
decor... Can anyone think of a way around this?

Also what does that last ChangeDecor "Default" do?

M.Cartwright_at_qub.ac.uk - http://star.pst.qub.ac.uk/~imc/vom.htm
-/-----------------------------------------------------------\-
| "One sweet buzz can make you feel how I feel, |
| One sweet love can make a mountain slide up the hill" |
-\-----------------------------------------------------------/-

--
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 Jan 20 1997 - 04:40:18 GMT

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