FVWM: How to make 2.5.10 center all new windows (with some exceptions)?

From: Francis Litterio <franl_at_world.std.com>
Date: Sun, 16 May 2004 10:35:50 -0400

Is there a way to tell FVWM 2.5.10 to center all newly created windows
(with some exceptions based on the window name)?

Right now, I'm using FvwmEvent's add_window command to do it, but the
window is created first then moved, which looks crappy. Here's what I'm
doing now, which works but makes windows jump around when they are first
created:

        AddToFunc StartFunction
        + I Module FvwmEvent

        *FvwmEvent: StartDelay 5
        *FvwmEvent: Cmd
        *FvwmEvent: add_window "Function MyPositionWindow"

        AddToFunc MyPositionWindow
        + I ThisWindow ("Emacs") Nop
        + I TestRc (Match) Break
        + I ThisWindow ("XTerm") Nop
        + I TestRc (Match) Break
        + I ThisWindow ("Download:Manager") Move 0 0
        + I TestRc (Match) Break
        + I ThisWindow ("asclock") Move -0p -0p
        + I TestRc (Match) Break
        + I ThisWindow Function MyCenterWindow # Center all others by default

Is there a way to do this that prevents windows from being moved after
they are created?
--
Francis Litterio
franl_at_world.std.com
http://world.std.com/~franl/
GPG and PGP public keys available on keyservers.
--
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 Sun May 16 2004 - 09:42:27 BST

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