On 03 Mar 2002 19:02:25 +0100, Dominik Vogt wrote:
> 
> > And here are examples when Preserve (or PreserveStatus) would be useful
> > (I use my proposed solution about all commands returning status codes):
> > 
> >   # restore shaded windows after resize
> >   DestroyFunc UnshadeResize
> >   AddToFunc   UnshadeResize
> >   + I This (Shaded) WindowShade off
> >   + I PreserveStatus Resize
> >   + I On (Success) WindowShade on
> 
> You don't need PreserveStatus here.  Only conditional commands
> modify the status.

I didn't speak about the current code here. I continued what I started in
another thread.

> >   # restore cursor at the bottom of window border
> >   DestroyFunc ResizeOrRaiseOrShade2
> >   AddToFunc   ResizeOrRaiseOrShade2
> >   + I This (Shaded) CursorMove 0 $[cw.height]p
> >   + I PreserveStatus ResizeOrRaiseOrShade
> >   + I On (Success) CursorMove 0 -$[cw.height]p
> 
> Same as above.

This can't be the same as above if we speak about the current code. :)
Because ResizeOrRaiseOrShade contains conditional commands.
Instead, the reason is that rc is local for every function. Fine.

> > The "On (Success)" is only true when This matched.
> > 
> > Do I understand it right that with the current code (that does not work,
> > because operand window is lost), the only way is this function since
> > ResizeOrRaiseOrShade by itself contains functions with conditionals:
> > 
> >   DestroyFunc ResizeOrRaiseOrShade2
> >   AddToFunc   ResizeOrRaiseOrShade2
> >   + I This (Shaded) CursorMove 0 $[cw.height]p
> >   + I CondCase (Match) ResizeOrRaiseOrShade
> >   + I CondCase (Error) ResizeOrRaiseOrShade  # for completeness
> >   + I CondCase (NoMatch) ResizeOrRaiseOrShade
> >   + I Cond (Match) CursorMove 0 -$[cw.height]p  # or CondCase
> 
> No.  See above.

BTW, everything works as expected now.

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to