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 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] 
[EMAIL PROTECTED] [EMAIL PROTECTED] -- 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 [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to