Re: FVWM: ResizeMove query

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Wed, 20 Mar 2002 23:57:43 +0100

On Wed, Mar 20, 2002 at 08:51:01PM +0000, Andy Arbon wrote:
> Hello,
>
> 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
> +

First, applications usually specify a size increment. Their
windows can only be resized by a multiple of that size. This is
usually the font width and height. Therefore, you won't be able
to fill the screen exactly for many applications.

The reason why the above ResizeMove command makes the window too
large is that the "Resize" variants round up to a multiple of the
step size while most other commands round down. Let me think if
that should be considered as a bug.

Bye

Dominik ^_^ ^_^

 --
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
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:23:45 GMT

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