aewl

changeset 526:c71952fa3c7c 1.8

simplified dotile(), removed misleading line
author Anselm R. Garbe <arg@10kloc.org>
date Thu, 05 Oct 2006 13:47:30 +0200
parents 7433954e80af
children c07a78138aac
files view.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/view.c	Thu Oct 05 13:44:48 2006 +0200
     1.2 +++ b/view.c	Thu Oct 05 13:47:30 2006 +0200
     1.3 @@ -103,18 +103,19 @@
     1.4   */
     1.5  void
     1.6  dotile(Arg *arg) {
     1.7 -	int i, n, stackw, stackh, tw, th;
     1.8 -	unsigned int md = ((stackpos == StackBottom ? sh - bh : sw) * master) / 100;
     1.9 +	unsigned int i, n, md, stackw, stackh, tw, th;
    1.10  	Client *c;
    1.11  
    1.12  	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
    1.13  		n++;
    1.14  
    1.15  	if(stackpos == StackBottom) {
    1.16 +		md = ((sh - bh) * master) / 100;
    1.17  		stackw = sw;
    1.18  		stackh = sh - bh - md;
    1.19  	}
    1.20  	else {
    1.21 +		md = (sw * master) / 100;
    1.22  		stackw = sw - md;
    1.23  		stackh = sh - bh;
    1.24  	}