projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02d5ddd
)
fix if n < nmaster of remainer calculation for master windows
author
Anselm R. Garbe
<arg@suckless.org>
Thu, 24 May 2007 14:25:09 +0000
(16:25 +0200)
committer
Anselm R. Garbe
<arg@suckless.org>
Thu, 24 May 2007 14:25:09 +0000
(16:25 +0200)
layout.c
patch
|
blob
|
history
diff --git
a/layout.c
b/layout.c
index 0865050b16d17308c98702b80ca61ae43a2e16b5..4b4e908d030ec67a3a1218ed4be30fad9684232a 100644
(file)
--- a/
layout.c
+++ b/
layout.c
@@
-40,7
+40,7
@@
tile(void) {
ny += i * mh;
nw = mw - 2 * c->border;
nh = mh;
- if(i + 1 ==
nmaster
) /* remainder */
+ if(i + 1 ==
(n < nmaster ? n : nmaster)
) /* remainder */
nh = wah - mh * i;
nh -= 2 * c->border;
}