commit f25cc5678fcc405a55df7f49e7b3189241933a97 from: Anselm R Garbe date: Tue Jun 17 10:19:17 2008 UTC tiled layout resizehints should be respected by default commit - 5a92420fce8d70a329a8294c1c77bb8c3c7eaad4 commit + f25cc5678fcc405a55df7f49e7b3189241933a97 blob - 95bb84cee4fab4807c15951b277bf40ddc380318 blob + 9bec26b32407a764cc2c1faa465766df99aca96c --- config.def.h +++ 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 */ blob - f4b0540d4a08e8203e895ad2a98b60f0eda7bff2 blob + 8ae4c0e8fc7c0573a661140ced2463d751b01aae --- dwm.c +++ dwm.c @@ -1094,11 +1094,11 @@ resize(Client *c, int x, int y, int w, int h, Bool siz 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)