simplified dotile(), removed misleading line
69408d38
1 file(s) · +3 −2
| 103 | 103 | */ |
|
| 104 | 104 | void |
|
| 105 | 105 | dotile(Arg *arg) { |
|
| 106 | - | int i, n, stackw, stackh, tw, th; |
|
| 107 | - | unsigned int md = ((stackpos == StackBottom ? sh - bh : sw) * master) / 100; |
|
| 106 | + | unsigned int i, n, md, stackw, stackh, tw, th; |
|
| 108 | 107 | Client *c; |
|
| 109 | 108 | ||
| 110 | 109 | for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) |
|
| 111 | 110 | n++; |
|
| 112 | 111 | ||
| 113 | 112 | if(stackpos == StackBottom) { |
|
| 113 | + | md = ((sh - bh) * master) / 100; |
|
| 114 | 114 | stackw = sw; |
|
| 115 | 115 | stackh = sh - bh - md; |
|
| 116 | 116 | } |
|
| 117 | 117 | else { |
|
| 118 | + | md = (sw * master) / 100; |
|
| 118 | 119 | stackw = sw - md; |
|
| 119 | 120 | stackh = sh - bh; |
|
| 120 | 121 | } |