On Wed, Jul 24, 2002 at 09:30:54PM +0000, Mikhael Goikhman wrote:
> On 24 Jul 2002 17:16:14 -0400, Victor Eijkhout wrote:
> >
> > I want a function that will "windowshade rollup and lower window" or
> > "windowshade unroll and raise window". The following:
> >
> > Mouse 0 T N MoveOrRaiseOrShade
> > AddToFunc MoveOrRaiseOrShade
> > + C Raise
> > + M Move
> > + D Current (Shaded) ShadeAndRaise
> > + D Current (!Shaded) ShadeAndAway
> >
> > has a cute bug: if a window is shaded, both last lines are executed.
>
> You want an if-else syntax instead.
>
> In 2.5.1+ do this:
>
> + D ThisWindow (Shaded) ShadeAndRaise
> + D Cond (NoMatch) ShadeAndAway
Just let me add that the syntax of conditional commands will
probably change before 2.6 is released.
Bye
Dominik ^_^ ^_^
--
Dominik Vogt, mail: dominik.vogt_at_schlund.de, phone: 0721/91374-382
Schlund + Partner AG, Erbprinzenstr. 4-12, D-76133 Karlsruhe
--
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 Thu Jul 25 2002 - 03:37:26 BST