On 18 Sep 2002 22:45:54 +0000, Mikhael Goikhman wrote:
>
> On 18 Sep 2002 14:19:21 -0700, Denis Perelyubskiy wrote:
> >
> > I am trying to add a command to the window to stay on top.
> > I know of a Style option, but I dont think its appropriate
> > here?
> >
> > I'd like to do something like :
> >
> > DestroyMenu Window-Ops
> > AddToMenu Window-Ops
> > + " Window Ops (ALT-F1)" Title
> > + " [Un] StaysOnTop" <WHAT GOES HERE?>
> >
> > I looked through the built-in fvwm function list, and could
> > not find a function to call :(
>
> It is called Layer.
>
> + "StaysOnTop" Layer 0 6
> + "StaysPut" Layer 0 4
> + "StaysOnBottom" Layer 0 2
Or if you really don't want one additional StaysPut menu item, in 2.4.6+:
+ "StaysOnTop" SwapWithLayer 6
+ "StaysOnBottom" SwapWithLayer 2
AddToFunc SwapWithLayer
+ I ThisWindow (Layer $0) Layer 0 10
+ I ThisWindow (Layer 4) Layer 0 $0
+ I ThisWindow (Layer 10) Layer 0 4
Actually you may do all this with only one menu item by 3-value looping
(Normal -> OnTop -> OnBottom -> Normal). Left as an exercise.
Regards,
Mikhael.
--
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 Wed Sep 18 2002 - 18:13:33 BST