On 09 Mar 2002 16:43:44 -0600, brendan_at_cs.uchicago.edu wrote:
>
> Has anyone written a function that will center a window, both vertically
> and horizontally, without resizing it at all?
With 2.4.x this may be used:
DestroyFunc CenterWindow
AddToFunc CenterWindow
+ I PipeRead `perl -e 'print "Move ", int(($[vp.width] - $[w.width]) / 2), "p ", int(($[vp.height] - $[w.height]) / 2), "p\\n"'`
Next (XTerm) CenterWindow
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 Sat Mar 09 2002 - 17:25:32 GMT