simplified dotile(), removed misleading line
This commit is contained in:
parent
4aea423f06
commit
69408d384d
5
view.c
5
view.c
|
@ -103,18 +103,19 @@ dofloat(Arg *arg) {
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
dotile(Arg *arg) {
|
dotile(Arg *arg) {
|
||||||
int i, n, stackw, stackh, tw, th;
|
unsigned int i, n, md, stackw, stackh, tw, th;
|
||||||
unsigned int md = ((stackpos == StackBottom ? sh - bh : sw) * master) / 100;
|
|
||||||
Client *c;
|
Client *c;
|
||||||
|
|
||||||
for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
|
for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
|
||||||
n++;
|
n++;
|
||||||
|
|
||||||
if(stackpos == StackBottom) {
|
if(stackpos == StackBottom) {
|
||||||
|
md = ((sh - bh) * master) / 100;
|
||||||
stackw = sw;
|
stackw = sw;
|
||||||
stackh = sh - bh - md;
|
stackh = sh - bh - md;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
md = (sw * master) / 100;
|
||||||
stackw = sw - md;
|
stackw = sw - md;
|
||||||
stackh = sh - bh;
|
stackh = sh - bh;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue