Re: FVWM: Helper Function to chnages Layers.

From: Thomas Glanzmann <sithglan_at_stud.uni-erlangen.de>
Date: Fri, 27 Dec 2002 02:43:23 +0100

> There is a Layer condition to do what you want:
>
> ThisWindow (Layer 4) Layer 10
>
> Just keep in mind that if you want if-else construct you should use either
> new 2.5.x Cond command or first conditionally construct a function and
> only then execute it, like:
>
> # cyclicly change a window layer 4 -> 10 -> 5 -> 9 -> 4
>
> DestroyFunc ActuallyDoLayer
> AddToFunc ActuallyDoLayer
> ThisWindow (Layer 4) + Layer 10
> ThisWindow (Layer 5) + Layer 9
> ThisWindow (Layer 9) + Layer 4
> ThisWindow (Layer 10) + Layer 5
> ActuallyDoLayer
>
> P.S. Layer command does not work in 2.5.5 and in cvs for now.

Thanks for the fast answer. It's the right direction but does not solve my
specific problem.

I need the following:

        If (Layer == 4) {
                put on Layer 10;
        } else {
                put on Layer 4;
        }

I tried the following, but it is crap anyway:

DestroyFunc RaiseOnTop
AddToFunc RaiseOnTop
        + I Raise
        + ThisWindow (Layer 4) Layer 10
        + ThisWindow (!Layer 4) Layer 4

Because if it done I am back in Layer 4. So I see at the moment no way to solve
this problem. Do you habe any idea?

Greetings and thank you again for your fast response,

        Thomas (who is still _not_ on the list ... so please reply by email,
                too)
                ~~~
--
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 Dec 26 2002 - 19:45:00 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:54 BST