Re: FVWM: GotoDeskAndPage prev

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Sun, 9 Sep 2001 02:50:12 +0200

On Fri, Sep 07, 2001 at 11:23:30PM +0200, Marcus Lundblad wrote:
> I have set up a command bind to Meta-Tab like this:
> Key Tab A M GotoDeskAndPage prev
>
> to switch to the page (and desk visited last), but I doesn't behave as I
> would expect.
> Example: I have 4 desks with each desk having 2x2 pages.
> Visit desk 1 page (0,0) then desk 2 page(0,0) then desk 2 page(1,0)
> Now I use my shortcut, it goes back to desk 1 page (0,0)
> So it seems it considers I visited desk 1 before desk 2 beacause the last
> switch was within the same desk.
> Is this intentional?

I guess nobody thought of this case yet. I'll make a patch that
fixes it in 2.4.1. For the moment, You could do so by using a
kind of dynamic function that is changed whenever one of the
Goto... functions is used:

  Key Tab A M MyGotoPrevDeskAndOrPage
  AddToFunc MyGotoPrevDeskOrPage
  + I GotoDeskAndPage prev

  AddToFunc MyGotoPage
  + I GotoPage $0 $1
  + I DestroyFunc MyGotoPrevDeskAndOrPage
  + I AddToFunc MyGotoPrevDeskAndOrPage I GotoPage prev

  AddToFunc MyGotoDesk
  + I GotoPage $0 $1
  + I DestroyFunc MyGotoPrevDeskAndOrPage
  + I AddToFunc MyGotoPrevDeskAndOrPage I GotoDesk prev

  AddToFunc MyGotoDeskAndPage
  + I GotoPage $0 $1 $2
  + I DestroyFunc MyGotoPrevDeskAndOrPage
  + I AddToFunc MyGotoPrevDeskAndOrPage I GotoDeskAndPage prev

Then replace all occurences of GotoDesk, GotoPage and
GotoDeskAndPage with MyGoto... in your config file (should work in
priciple, but completely untested).

> If so can the behaviour I desire be implemented,
> perhaps using FvwmBacker?

FvwmBacker won't help here.

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 Sep 08 2001 - 20:40:03 BST

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