Re: FVWM: ResizeMove query

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 20 Mar 2002 23:29:08 +0000

On 20 Mar 2002 20:51:01 +0000, Andy Arbon wrote:
>
> I have the function below, which I use for 'maximising' a window onto my
> first monitor (for complicated reasons, I can't use the Maximise
> functions properly), but for some reason the window always appears a
> little too tall, so that the bottom of the window just disappears off
> the screen a little.
>
> Adjusting the size parameters subtly doesn't seem to fix this!
>
>
> DestroyFunc Max-Pri-Mon
> AddToFunc Max-Pri-Mon "I" ResizeMove 1152p 864p 0p 0p
> + "I" Raise
>
> Does anyone have any suggestions what could be wrong?
> The function is bound to Alt-F10, not that I think that makes any
> difference.
>
> The function below is nearly OK.. the only problem is that the window
> doesn't quite reach the bottom of the screen. With this function, I'm
> more curious why the numbers have to be seemingly weird to make it fit?
> On a 1152x864 monitor I thought the numbers would be 1152p 864p?
>
> DestroyFunc Max-Pri-Mon
> AddToFunc Max-Pri-Mon "I" ResizeMove 1149p 841p 0p 0p
> +

There are 2 issues here.

First you can't fit some windows exactly. For example xterms.
Try to maximize xterm or, say, FvwmPager. Chances are that you get gaps.
This is how xterm says it should be resized.

The second issue is that Resize gets the size of a client window not
the window frame. So if you have border with width 3 and title with width
18, frame will be 6 pixels wider by X and 24 pixels higher.

So try another method instead:

  DestroyFunc Max-Pri-Mon
  AddToFunc Max-Pri-Mon
  + I Move 0p 0p
  + I Resize bottomright 1152p 864p
  + I Raise

Currently Move and Resize can't be combined here, but Dominik will surely
fix this. :)

But, as I said xterm or other terminal emulator, may not fix exactly.

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 Mar 20 2002 - 17:29:46 GMT

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