summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-10-05 13:47:30 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-10-05 13:47:30 +0200
commit69408d384d55b69f66ea52f8767eb577a34d9ae2 (patch)
tree596329b242870290468f1065a69b51eb16e15b53
parentfinal fix for man page (diff)
downloaddwm-69408d384d55b69f66ea52f8767eb577a34d9ae2.tar.gz
dwm-69408d384d55b69f66ea52f8767eb577a34d9ae2.zip
simplified dotile(), removed misleading line
-rw-r--r--view.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/view.c b/view.c
index 61144df..6ca82d1 100644
--- a/view.c
+++ b/view.c
@@ -103,18 +103,19 @@ dofloat(Arg *arg) {
103 */ 103 */
104void 104void
105dotile(Arg *arg) { 105dotile(Arg *arg) {
106 int i, n, stackw, stackh, tw, th; 106 unsigned int i, n, md, stackw, stackh, tw, th;
107 unsigned int md = ((stackpos == StackBottom ? sh - bh : sw) * master) / 100;
108 Client *c; 107 Client *c;
109 108
110 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) 109 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
111 n++; 110 n++;
112 111
113 if(stackpos == StackBottom) { 112 if(stackpos == StackBottom) {
113 md = ((sh - bh) * master) / 100;
114 stackw = sw; 114 stackw = sw;
115 stackh = sh - bh - md; 115 stackh = sh - bh - md;
116 } 116 }
117 else { 117 else {
118 md = (sw * master) / 100;
118 stackw = sw - md; 119 stackw = sw - md;
119 stackh = sh - bh; 120 stackh = sh - bh;
120 } 121 }