JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
tiled layout resizehints should be respected by default
[dwm.git] / dwm.c
diff --git a/dwm.c b/dwm.c
index f4b0540..8ae4c0e 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -1094,11 +1094,11 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
 
                w = MAX(w, c->minw);
                h = MAX(h, c->minh);
-               
-               if (c->maxw)
+
+               if(c->maxw)
                        w = MIN(w, c->maxw);
 
-               if (c->maxh)
+               if(c->maxh)
                        h = MIN(h, c->maxh);
        }
        if(w <= 0 || h <= 0)