aboutsummaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-06-17 11:19:17 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-06-17 11:19:17 +0100
commitf25cc5678fcc405a55df7f49e7b3189241933a97 (patch)
tree9366eaa713f1aa6bd28f21ff4a6a3bbffae8ec84 /dwm.c
parent5a92420fce8d70a329a8294c1c77bb8c3c7eaad4 (diff)
downloaddwm-f25cc5678fcc405a55df7f49e7b3189241933a97.tar.gz
tiled layout resizehints should be respected by default
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dwm.c b/dwm.c
index f4b0540..8ae4c0e 100644
--- 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)