Subject: Re: FVWM: Desk and FvwmPager

From: Tim Phipps <[email-masked]>
Date: Mon, 14 Jul 1997 10:42:27 +0100 (BST)

> 
> I'm using fvwm 2.0.45, and start FvwmPager with arguments "0 3".  If I
> issue "Desk 1" while on Desk 3, or "Desk -1" while on Desk 0, fvwm moves
> me onto a desk that is not in "view" of FvwmPager.  I'd prefer this to be
> some sort of error, and ideally have fvwm beep and keep me on the current
> Desk.  Is there any way to do this?  The quickest fix I can think of is to
> hack FvwmPager to have its own Desk function, but this isn't very elegant. 
> 
I use this feature to hide certain windows from the view of the pager.  I put 
them on a desk tha the poager is not configured to show and toggle the Sticky 
attribute to bring them in and out of the current desktop.  So, I would prefer 
not to limit Fvwm to only having visble desktops.

Maybe you could change from using "Desk 1" and "Desk -1" to something a bit 
smarter.  I use Alt+Insert|Home|Delete|End to go around my 2x2 desktops
with "Desk 0 n" to go directly.  The keys are in a square arrangement which 
matches the view shown by FvwmPager.

If you want a NextDesk/PrevDesk command that wraps modulo 3 you could use self 
modifying functions i.e.

AddToFunc my_NextDesk	"I" my_Desk1
AddToFunc my_PrevDesk	"I" my_Desk3

AddToFunc my_Desk0	"I" Desk 0 0
+			"I" DestroyFunc my_NextDesk
+			"I" DestroyFunc my_PrevDesk
+			"I" AddToFunc my_NextDesk	"I" my_Desk1
+			"I" AddToFunc my_PrevDesk	"I" my_Desk3

AddToFunc my_Desk1	"I" Desk 0 1
+			"I" DestroyFunc my_NextDesk
+			"I" DestroyFunc my_PrevDesk
+			"I" AddToFunc my_NextDesk	"I" my_Desk2
+			"I" AddToFunc my_PrevDesk	"I" my_Desk0

AddToFunc my_Desk2	"I" Desk 0 2
+			"I" DestroyFunc my_NextDesk
+			"I" DestroyFunc my_PrevDesk
+			"I" AddToFunc my_NextDesk	"I" my_Desk3
+			"I" AddToFunc my_PrevDesk	"I" my_Desk1

AddToFunc my_Desk3	"I" Desk 0 3
+			"I" DestroyFunc my_NextDesk
+			"I" DestroyFunc my_PrevDesk
+			"I" AddToFunc my_NextDesk	"I" my_Desk0
+			"I" AddToFunc my_PrevDesk	"I" my_Desk2

Hope this helps,
Timbo.

PS I haven't tested the above.
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [email-masked].
To report problems, send mail to [email-masked].