Re: FVWM: Selective auto-shade

From: Uwe Pross <uwe.pross_at_gmx.net>
Date: Tue, 5 Aug 2003 20:51:02 +0200

Hi Moore,,

On Tue, 05 Aug 2003, Moore, Garron wrote:

> I'm trying to set up the following:
>
> When you click a button in the title bar, the window goes into
> auto-shade mode. This is like auto-raise, but shade instead. I'm having
> trouble figuring out how to set it up. I'm sure it's the same procedure
> as setting up auto-raise in the same manner because I'm using FvwmAuto.

I hope I got you right. The following code (using it with
2.5.7) make the third button from the left side turn on/off
auto shade when the window gets focus. If the window leaves
focus it is shaded automatically. if the window gets focus
it is unshaded automatically. You can turn off this
behaviour using the button:

ButtonStyle 6 Vector 5 40x40_at_2 40x60_at_2 60x60_at_2 60x40_at_2 40x40_at_2 -- Flat UseTitleStyle
Style * Button 6
Mouse 1 6 A State 1 toggle

DestroyFunc AutoShadeOn
AddToFunc AutoShadeOn I WindowId $0 (State 1) WindowShade on

DestroyFunc AutoShadeOff
AddToFunc AutoShadeOff I WindowId $0 (State 1) WindowShade off

Module FvwmAuto 0 -passid "Silent AutoShadeOff" "Silent AutoShadeOn"

Cheers, Uwe
--
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 Tue Aug 05 2003 - 13:53:36 BST

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