equal
deleted
inserted
replaced
101 * SSMMM MMMMM MMMSS |
101 * SSMMM MMMMM MMMSS |
102 * SSMMM SSSSS MMMSS |
102 * SSMMM SSSSS MMMSS |
103 */ |
103 */ |
104 void |
104 void |
105 dotile(Arg *arg) { |
105 dotile(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 } |
121 |
122 |
122 tw = stackw; |
123 tw = stackw; |