On 12 May 2004 02:14:19 -0400, Nicholas Paul Johnson wrote:
>
> I've tried the transient fvwm buttons solution, here is what I've found:
>
> Because the button is pushed from within the context of GridButtons,
> the MoveToDesk (and presumably similar commands) still require the user
> select a window.
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.
> Also, the buttons start at +0+0, which I do not know how to fix :(
Using -g command line option, see the code above. You may also make it
centered under cursor, just calculate appropriate coordinates.
Regards,
Mikhael.
--
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 - 06:50:28 BST