Re: FVWM: [PATCH] Resize problem

From: <dominik.vogt_at_gmx.de>
Date: Wed, 10 Sep 2003 01:49:58 +0200

On Tue, Sep 09, 2003 at 09:19:43PM +0200, Håvard Kvålen wrote:
> Hi,
>
> If a client sets WM_NORMAL_HINTS on a window and then starts a resize with
> EWMH "moveresize" before any ConfigureRequest is generated, fvwm will use
> old data. The last part of the patch will probably trigger in other cases
> too.

Thanks for the patch. I have applied the second part. The first
problem is already fixed in the latest development code.

> diff -ur fvwm-2.5.6-orig/fvwm/decorations.c fvwm-2.5.6/fvwm/decorations.c
> --- fvwm-2.5.6-orig/fvwm/decorations.c 2002-12-21 23:18:34.000000000 +0100
> +++ fvwm-2.5.6/fvwm/decorations.c 2003-09-09 19:12:29.000000000 +0200
> _at_@ -612,8 +612,15 @@
> static Bool __is_resize_allowed(FvwmWindow *t, int functions,
> Bool is_user_request)
> {
> + if (HAS_NEW_WM_NORMAL_HINTS(t))
> + {
> + /* get the latest size hints */
> + XSync(dpy, 0);
> + GetWindowSizeHints(t);
> + SET_HAS_NEW_WM_NORMAL_HINTS(t, 0);
> + }
> if (!HAS_OVERRIDE_SIZE_HINTS(t) &&
> - t->hints.min_width == t->hints.min_width &&
> + t->hints.min_width == t->hints.max_width &&
> t->hints.min_height == t->hints.max_height)
> {
> return False;

Ciao

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 Tue Sep 09 2003 - 16:56:55 BST

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