Re: FVWM: centering a window

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Sat, 9 Mar 2002 23:25:04 +0000

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

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