JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
revival of RESIZEHINTS
authorAnselm R. Garbe <garbeam@gmail.com>
Fri, 2 Nov 2007 09:43:39 +0000 (10:43 +0100)
committerAnselm R. Garbe <garbeam@gmail.com>
Fri, 2 Nov 2007 09:43:39 +0000 (10:43 +0100)
config.def.h
dwm.c

index 1dcd7f9..9714129 100644 (file)
@@ -28,6 +28,7 @@ Rule rules[] = {
 
 /* layout(s) */
 #define MWFACT                 0.6     /* master width factor [0.1 .. 0.9] */
 
 /* layout(s) */
 #define MWFACT                 0.6     /* master width factor [0.1 .. 0.9] */
+#define RESIZEHINTS            True    /* False - respect size hints in tiled resizals */
 #define SNAP                   32      /* snap pixel */
 Layout layouts[] = {
        /* symbol               function */
 #define SNAP                   32      /* snap pixel */
 Layout layouts[] = {
        /* symbol               function */
diff --git a/dwm.c b/dwm.c
index e07574a..257edcc 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -1584,8 +1584,8 @@ tile(void) {
                        else
                                nh = th - 2 * c->border;
                }
                        else
                                nh = th - 2 * c->border;
                }
-               resize(c, nx, ny, nw, nh, True);
-               if((c->h < bh) || (c->h > nh) || (c->w < bh) || (c->w > nw))
+               resize(c, nx, ny, nw, nh, RESIZEHINTS);
+               if((RESIZEHINTS) && ((c->h < bh) || (c->h > nh) || (c->w < bh) || (c->w > nw)))
                        /* client doesn't accept size constraints */
                        resize(c, nx, ny, nw, nh, False);
                if(n > 1 && th != wah)
                        /* client doesn't accept size constraints */
                        resize(c, nx, ny, nw, nh, False);
                if(n > 1 && th != wah)