diff options
-rw-r--r-- | config.def.h | 4 | ||||
-rw-r--r-- | dwm.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/config.def.h b/config.def.h index 95bb84ce..9bec26b3 100644 --- a/config.def.h +++ b/config.def.h @@ -27,8 +27,8 @@ static Rule rules[] = { }; /* layout(s) */ -static float mfact = 0.55; -static Bool resizehints = False; /* False means respect size hints in tiled resizals */ +static float mfact = 0.55; +static Bool resizehints = True; /* False means respect size hints in tiled resizals */ static Layout layouts[] = { /* symbol arrange function */ @@ -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) |