Re: FVWM: StaysOnTop in Window Ops

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Sat, 20 Jul 2002 22:10:07 +0200

On Sat, Jul 20, 2002 at 03:25:12PM +0000, Mikhael Goikhman wrote:
> On 20 Jul 2002 16:51:35 +0200, Christoph Claus wrote:
> >
> > It doesn't work for me... :-(
>
> Ok. Several issues here.
>
> StaysOnTop just like Layer is one of the not many style options that
> require RecaptureWindow to be applied. This works in 2.4.x:
>
> AddToMenu MenuFvwmWindowOps
> + I "StaysOnTop" StyleAndRecapture $n StaysOnTop
> + I "StaysPut" StyleAndRecapture $n StaysPut
> + I "StaysOnBottom" StyleAndRecapture $n StaysOnBottom
>
> AddToFunc StyleAndRecapture
> + I Style "$0" $1
> + I All ("$0") RecaptureWindow
>
> But this is broken in the current cvs, these style options do not work.

Sure. This doesn't work. You have to remove the "I" bits first
;-) ALthough it probably happened by accident, I think it is
correct that recapturing a window does not modify the window's
layer. To do this at run time, use the layer command. With the
same reasoning, changing the "Sticky" and "StartsIconic" styles
with Recapture should be no-ops too. Remember, I'm still trying
to obsolete and finally remove the Recapture command.
 
> Anyway, if you want only to change layers of one specific window, not
> all windows with the same name, you may do it without Style:
>
> AddToMenu MenuFvwmWindowOps
> + "StaysOnTop" Layer 0 6
> + "StaysPut" Layer 0 4
> + "StaysBottom" Layer 0 2

Or if you want to changle the layers of all windows with the given
name:

  AddToMenu MenuFvwmWindowOps
  + "StaysOnTop" All ($n) Layer 0 6
  + "StaysPut" All ($n) Layer 0 4
  + "StaysBottom" All ($n) Layer 0 2

I recommend not to promote any configs that use the Recapture
command anymore. As far as I know, it is not recessary to update
any styles and can be avoided in all other situations too.

Recapture = buggy, inefficient, stupid, visually disturbing... (I
could continue ranting about it forever).

Bye

Dominik ^_^ ^_^

 --
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
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 Sat Jul 20 2002 - 15:10:10 BST

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