Re: FVWM: Selective auto-shade

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 6 Aug 2003 21:59:18 +0300

On 06 Aug 2003 08:30:27 +0200, Uwe Pross wrote:
>
> You may try the following at your box to see the effect:
>
> DestroyFunc AutoShadeOn
> AddToFunc AutoShadeOn I WindowId $0 WindowShade True
> DestroyFunc AutoShadeOff
> AddToFunc AutoShadeOff I WindowId $0 WindowShade False
> Module FvwmAuto 0 -passid "Silent AutoShadeOff" "Silent AutoShadeOn"
>
> which should work with 2.4.16.

Actually, the passid options are never really needed in FvwmEvent and
FvwmAuto. Here is the same code, but shorter and clearer:

DestroyFunc AutoShadeOn
AddToFunc AutoShadeOn I WindowShade True
DestroyFunc AutoShadeOff
AddToFunc AutoShadeOff I WindowShade False
Module FvwmAuto 0 "Silent AutoShadeOff" "Silent AutoShadeOn"

If you need a condition, you may use ThisWindow instead of "WindowId $0".

Regards,
Mikhael.
--
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 Wed Aug 06 2003 - 14:01:00 BST

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