dwm-meillo

diff tag.c @ 115:329fd7dae530

removed c->f{x,y,w,h} and c->t{x,y,w,h} in favor for the new rule handling remembering two kinds of geometries is unnecessary, removed the randomized (x,y) setting on dofloat startup, was kind too random und unpredictable
author arg@10ksloc.org
date Thu, 20 Jul 2006 07:26:23 +0200
parents dfa5cd0969a6
children 61490330e90a
line diff
     1.1 --- a/tag.c	Wed Jul 19 17:42:08 2006 +0200
     1.2 +++ b/tag.c	Thu Jul 20 07:26:23 2006 +0200
     1.3 @@ -53,7 +53,6 @@
     1.4  
     1.5  	arrange = dofloat;
     1.6  	for(c = clients; c; c = c->next) {
     1.7 -		setgeom(c);
     1.8  		if(c->tags[tsel]) {
     1.9  			resize(c, True, TopLeft);
    1.10  		}
    1.11 @@ -87,7 +86,6 @@
    1.12  		h = sh - bh;
    1.13  
    1.14  	for(i = 0, c = clients; c; c = c->next) {
    1.15 -		setgeom(c);
    1.16  		if(c->tags[tsel]) {
    1.17  			if(c->isfloat) {
    1.18  				higher(c);
    1.19 @@ -95,28 +93,28 @@
    1.20  				continue;
    1.21  			}
    1.22  			if(n == 1) {
    1.23 -				*c->x = sx;
    1.24 -				*c->y = sy + bh;
    1.25 -				*c->w = sw - 2 * c->border;
    1.26 -				*c->h = sh - 2 * c->border - bh;
    1.27 +				c->x = sx;
    1.28 +				c->y = sy + bh;
    1.29 +				c->w = sw - 2 * c->border;
    1.30 +				c->h = sh - 2 * c->border - bh;
    1.31  			}
    1.32  			else if(i == 0) {
    1.33 -				*c->x = sx;
    1.34 -				*c->y = sy + bh;
    1.35 -				*c->w = mw - 2 * c->border;
    1.36 -				*c->h = sh - 2 * c->border - bh;
    1.37 +				c->x = sx;
    1.38 +				c->y = sy + bh;
    1.39 +				c->w = mw - 2 * c->border;
    1.40 +				c->h = sh - 2 * c->border - bh;
    1.41  			}
    1.42  			else if(h > bh) {
    1.43 -				*c->x = sx + mw;
    1.44 -				*c->y = sy + (i - 1) * h + bh;
    1.45 -				*c->w = w - 2 * c->border;
    1.46 -				*c->h = h - 2 * c->border;
    1.47 +				c->x = sx + mw;
    1.48 +				c->y = sy + (i - 1) * h + bh;
    1.49 +				c->w = w - 2 * c->border;
    1.50 +				c->h = h - 2 * c->border;
    1.51  			}
    1.52  			else { /* fallback if h < bh */
    1.53 -				*c->x = sx + mw;
    1.54 -				*c->y = sy + bh;
    1.55 -				*c->w = w - 2 * c->border;
    1.56 -				*c->h = sh - 2 * c->border - bh;
    1.57 +				c->x = sx + mw;
    1.58 +				c->y = sy + bh;
    1.59 +				c->w = w - 2 * c->border;
    1.60 +				c->h = sh - 2 * c->border - bh;
    1.61  			}
    1.62  			resize(c, False, TopLeft);
    1.63  			i++;