Re: FVWM: Changing Decor in a Function

From: lar3ry gensch <gensch_at_zk3.dec.com>
Date: Fri, 17 Jan 1997 12:33:34 -0500

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.

-- 
(void) lar3ry();                                      gensch_at_zk3.dec.com
     "Sometimes it happens.  People just explode.  Natural causes."
--
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 Fri Jan 17 1997 - 11:47:04 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:59 BST