summaryrefslogtreecommitdiffstats
path: root/view.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 }