Re: FVWM: getting back to old behavior of pager (just upgraded to 2.4.6)

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Thu, 10 Oct 2002 16:08:53 +0200

On Wed, Oct 09, 2002 at 08:20:09PM -0400, Daniel Barclay wrote:
>
>
> > From: Dominik Vogt <dominik.vogt_at_gmx.de>
> >
> > On Sat, Sep 28, 2002 at 12:08:25AM -0400, Daniel Barclay wrote:
> > > ...
> > > How can I configure the pager window so that ...
> > > ...
> > > - if I raised it, it went into stay-on-top mode;
> > >
> > > - if I lowered it, it lowered and partipated normally in the z order
> > > until I raised it again. ...
> > ...
> > AddToFunc my_raise
> > + I Current (FvwmPager) Layer 0 6
> > + I Current (!FvwmPager) Raise
> >
> > AddToFunc my_lower
> > + I Current (FvwmPager) Layer 0 4
> > + I Current (!FvwmPager) Lower
> >
> > Then replace all calls of "Raise" and "Lower" in your config
> > file with "my_raise" and "my_lower". ...
>
> Thanks.
>
> Two follow-up questions:
>
> How do I specify multiple actions ("Layer 0 4" followed by "Lower")?

By definig a complex function:

  AddToFunc my_lower_to_layer_4
  + I Layer 0 4
  + I Lower

  AddToFunc my_raise_to_layer_6
  + I Layer 0 6
  + I Lower

Then call

  my_lower_to_layer_4

or

  my_raise_to_layer_6

> Can I bind mouse actions to a specific window? That is, can I add
> some syntax like "(FvwmPager)" to a configuration statement/line/whatever
> like:
>
> Mouse 1 TS A Move-or-Raise
>
> to make it apply to just the named window?

Not exactly, but you can simulate it with conditional commands:

  Mouse 1 TS A Move-or-Raise
  Mouse 2 TS A my_lower

  DestroyFunc Move-or-Raise
  AddToFunc Move-or-Raise
  + C my_raise
  + M my_raise
  + M Move

  AddToFunc my_raise
  + I ThisWindow (FvwmPager) Layer 0 6
  + I Raise

  AddToFunc my_lower
  + I ThisWindow (FvwmPager) Layer 0 4
  + I Lower

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 Thu Oct 10 2002 - 09:09:35 BST

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