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 : : [EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED] : : 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 [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
