ttiled layout resizehints should be respected by default - dwm - [fork] customi… | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit f25cc5678fcc405a55df7f49e7b3189241933a97 | |
parent 5a92420fce8d70a329a8294c1c77bb8c3c7eaad4 | |
Author: Anselm R Garbe <[email protected]> | |
Date: Tue, 17 Jun 2008 11:19:17 +0100 | |
ttiled layout resizehints should be respected by default | |
Diffstat: | |
M config.def.h | 4 ++-- | |
M dwm.c | 6 +++--- | |
2 files changed, 5 insertions(+), 5 deletions(-) | |
--- | |
diff --git a/config.def.h b/config.def.h | |
t@@ -27,8 +27,8 @@ static Rule rules[] = { | |
}; | |
/* layout(s) */ | |
-static float mfact = 0.55; | |
-static Bool resizehints = False; /* False means respect size hints i… | |
+static float mfact = 0.55; | |
+static Bool resizehints = True; /* False means respect size hints in tiled res… | |
static Layout layouts[] = { | |
/* symbol arrange function */ | |
diff --git a/dwm.c b/dwm.c | |
t@@ -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) |