aboutsummarylogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe2008-06-17 11:19:17 +0100
committerAnselm R Garbe2008-06-17 11:19:17 +0100
commit1ab7ffa102ee4b2ba87a2e7baa6677687b6a68f0 (patch)
treeb2f57978ba2e894597cb3c99f0e5d2f6c03f28c3 /dwm.c
parent616f7729c5948739226efcb8359f1040bac741ae (diff)
downloadaur-1ab7ffa102ee4b2ba87a2e7baa6677687b6a68f0.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 f4b0540d4a08..8ae4c0e8fc7c 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)