On Tue, Dec 10, 2002 at 04:00:22PM +0000, Mikhael Goikhman wrote:
> On 10 Dec 2002 08:17:07 -0500, Timothy Groves wrote:
> >
> > Mikhael Goikhman wrote:
> >
> > > With SloppyFocus, put this your in menus or StartFunction:
> > >
> > > FvwmAuto 200 "Silent WindowShade off" "Silent WindowShade on"
> > >
> > > Although this does exactly what you want and kind of fancy,
> > > I am not sure this is very usable.
> >
> > Yep, that works all right. A little too well. :) Is there a way to
> > limit it to only windows that are already shaded?
>
> Please decide what you want, should it automatically shade on or not?
He wants to shade only windows that were previously unshaded when
they received focus. Try this one (but personally I hate that).
AddToFunc funky_shade
+ I WindowId $[funky_shade_w] (!shaded) WindowShade on
AddToFunc funky_unshade
+ I funky_shade
+ I UnsetEnv funky_shade_w
+ I ThisWindow (shaded) SetEnv funky_shade_w $w
+ I WindowShade off
AddToFunc StartFunction
+ I UnsetEnv funky_shade_w
+ I FvwmAuto 300 "Silent funky_unshade" "Silent funky_shade"
Maybe it could be done better with using the internal window
states to remember which windows want to be (un)shaded.
> This makes more sense for me:
>
> FvwmAuto 300 "ThisWindow (Shaded) WindowShade off"
>
> It is possible to program some more complex logic (once you define it)
> using user states in 2.5.x. Also use delay 0 if you intend to mix quick
> manual shading with automatical unshading.
Bye
Dominik ^_^ ^_^
--
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 Dec 10 2002 - 10:42:04 GMT