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