FVWM: [PATCH] Resize problem

From: Håvard Kvålen <havardk_at_xmms.org>
Date: Tue, 9 Sep 2003 21:19:43 +0200 (CEST)

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.

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;

-- 
Håvard Kvålen
--
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 - 14:22:03 BST

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