aewl

changeset 573:797e27162b43

fififif
author arg@mig29
date Wed, 22 Nov 2006 16:17:50 +0100
parents 427708bf5f36
children fc443db640fa
files dwm.h tag.c view.c
diffstat 3 files changed, 1 insertions(+), 37 deletions(-) [+]
line diff
     1.1 --- a/dwm.h	Wed Nov 22 14:57:09 2006 +0100
     1.2 +++ b/dwm.h	Wed Nov 22 16:17:50 2006 +0100
     1.3 @@ -82,7 +82,7 @@
     1.4  	int basew, baseh, incw, inch, maxw, maxh, minw, minh;
     1.5  	int grav;
     1.6  	long flags; 
     1.7 -	unsigned int border, weight;
     1.8 +	unsigned int border;
     1.9  	Bool isfloat, isfixed, ismax;
    1.10  	Bool *tags;
    1.11  	Client *next;
     2.1 --- a/tag.c	Wed Nov 22 14:57:09 2006 +0100
     2.2 +++ b/tag.c	Wed Nov 22 16:17:50 2006 +0100
     2.3 @@ -104,7 +104,6 @@
     2.4  	if(!matched)
     2.5  		for(i = 0; i < ntags; i++)
     2.6  			c->tags[i] = seltag[i];
     2.7 -	for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++);
     2.8  }
     2.9  
    2.10  void
    2.11 @@ -116,7 +115,6 @@
    2.12  	for(i = 0; i < ntags; i++)
    2.13  		sel->tags[i] = False;
    2.14  	sel->tags[arg->i] = True;
    2.15 -	sel->weight = arg->i;
    2.16  	arrange();
    2.17  }
    2.18  
    2.19 @@ -130,6 +128,5 @@
    2.20  	for(i = 0; i < ntags && !sel->tags[i]; i++);
    2.21  	if(i == ntags)
    2.22  		sel->tags[arg->i] = True;
    2.23 -	sel->weight = (i == ntags) ? arg->i : i;
    2.24  	arrange();
    2.25  }
     3.1 --- a/view.c	Wed Nov 22 14:57:09 2006 +0100
     3.2 +++ b/view.c	Wed Nov 22 16:17:50 2006 +0100
     3.3 @@ -6,42 +6,12 @@
     3.4  /* static */
     3.5  
     3.6  static Client *
     3.7 -minclient(void) {
     3.8 -	Client *c, *min;
     3.9 -
    3.10 -	if((clients && clients->isfloat) || arrange == dofloat)
    3.11 -		return clients; /* don't touch floating order */
    3.12 -	for(min = c = clients; c; c = c->next)
    3.13 -		if(c->weight < min->weight)
    3.14 -			min = c;
    3.15 -	return min;
    3.16 -}
    3.17 -
    3.18 -static Client *
    3.19  nexttiled(Client *c) {
    3.20  	for(c = getnext(c); c && c->isfloat; c = getnext(c->next));
    3.21  	return c;
    3.22  }
    3.23  
    3.24  static void
    3.25 -reorder(void) {
    3.26 -	Client *c, *newclients, *tail;
    3.27 -
    3.28 -	newclients = tail = NULL;
    3.29 -	while((c = minclient())) {
    3.30 -		detach(c);
    3.31 -		if(tail) {
    3.32 -			c->prev = tail;
    3.33 -			tail->next = c;
    3.34 -			tail = c;
    3.35 -		}
    3.36 -		else
    3.37 -			tail = newclients = c;
    3.38 -	}
    3.39 -	clients = newclients;
    3.40 -}
    3.41 -
    3.42 -static void
    3.43  togglemax(Client *c) {
    3.44  	XEvent ev;
    3.45  		
    3.46 @@ -247,7 +217,6 @@
    3.47  	for(i = 0; i < ntags && !seltag[i]; i++);
    3.48  	if(i == ntags)
    3.49  		seltag[arg->i] = True; /* cannot toggle last view */
    3.50 -	reorder();
    3.51  	arrange();
    3.52  }
    3.53  
    3.54 @@ -258,7 +227,6 @@
    3.55  	for(i = 0; i < ntags; i++)
    3.56  		seltag[i] = False;
    3.57  	seltag[arg->i] = True;
    3.58 -	reorder();
    3.59  	arrange();
    3.60  }
    3.61  
    3.62 @@ -268,7 +236,6 @@
    3.63  
    3.64  	for(i = 0; i < ntags; i++)
    3.65  		seltag[i] = True;
    3.66 -	reorder();
    3.67  	arrange();
    3.68  }
    3.69