Re: FVWM: MoveToPage and tabular menu

From: Phil Stracchino <alaric_at_caerllewys.net>
Date: Wed, 12 May 2004 08:25:48 -0400

On Wed, May 12, 2004 at 11:47:59AM +0000, Mikhael Goikhman wrote:
> Yes... I think transient FvwmButtons should preserve the original window
> context. But you may workaround this, like:
>
> AddToMenu Window-Ops2
> + "Move to Page" SelectPageToMoveWindow
>
> AddToFunc SelectPageToMoveWindow
> + I SetEnv LAST_WIN_ID $[w.id]
> + I FvwmButtons -g 128x64+$[pointer.x]+$[pointer.y] -transient GridButtons
>
> AddToFunc MoveLastWindowToDesk
> + I WindowId $[LAST_WIN_ID] MoveToDesk 0 $0
>
> *GridButtons: (Title "0", Action "MoveLastWindowToDesk 0")
> [...]
> *GridButtons: (Title "7", Action "MoveLastWindowToDesk 7")
>
> Not tested, but if the code you posted works for you, then this one
> should work too.


This works fairly nicely for me, like so:

AddToFunc SendWindowToPage
+ I SetEnv LAST_WIN_ID $[w.id]
+ I FvwmButtons -g 144x96+$[pointer.x]+$[pointer.y] -transient GridButtons

AddToFunc MoveLastWindowToPage
+ I WindowId $[LAST_WIN_ID] MoveToPage $0 $1

DestroyModuleConfig GridButtons
*GridButtons: columns 4
*GridButtons: rows 4
*GridButtons: (Title "0", Action "MoveLastWindowToPage 0 0")
*GridButtons: (Title "1", Action "MoveLastWindowToPage 1 0")
...
*GridButtons: (Title "15", Action "MoveLastWindowToPage 3 3")


except that FvwmButtons is not honoring the -g specification
144x96+$[pointer.x]+$[pointer.y]. Size alone is honored, size+position
is honored if the position is a fixed specification, but the
pointer-position specification does not work. What is the first fvwm2
version in which the $[pointer.x] notation should be valid? I'm running
2.4.16 at present.


-- 
 .*********  Fight Back!  It may not be just YOUR life at risk.  *********.
 : phil stracchino : unix ronin : renaissance man : mystic zen biker geek :
 :  alaric_at_caerllewys.net|phil-stracchino_at_earthlink.net|phil_at_novylen.net  :
 :   2000 CBR929RR, 1991 VFR750F3 (foully murdered), 1986 VF500F (sold)   :
 :    Linux Now!   ...Because friends don't let friends use Microsoft.    :
--
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 May 12 2004 - 07:28:36 BST

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