pinosaur
/
dwm.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a92420
)
tiled layout resizehints should be respected by default
author
Anselm R Garbe
<garbeam@gmail.com>
Tue, 17 Jun 2008 10:19:17 +0000
(11:19 +0100)
committer
Anselm R Garbe
<garbeam@gmail.com>
Tue, 17 Jun 2008 10:19:17 +0000
(11:19 +0100)
config.def.h
patch
|
blob
|
history
dwm.c
patch
|
blob
|
history
diff --git
a/config.def.h
b/config.def.h
index
95bb84c
..
9bec26b
100644
(file)
--- 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 */
diff --git
a/dwm.c
b/dwm.c
index
f4b0540
..
8ae4c0e
100644
(file)
--- 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)