dwm-meillo

diff view.c @ 573:797e27162b43

fififif
author arg@mig29
date Wed, 22 Nov 2006 16:17:50 +0100
parents fe766305eed1
children 37281ebc1b5b
line diff
     1.1 --- a/view.c	Wed Nov 22 14:57:09 2006 +0100
     1.2 +++ b/view.c	Wed Nov 22 16:17:50 2006 +0100
     1.3 @@ -6,42 +6,12 @@
     1.4  /* static */
     1.5  
     1.6  static Client *
     1.7 -minclient(void) {
     1.8 -	Client *c, *min;
     1.9 -
    1.10 -	if((clients && clients->isfloat) || arrange == dofloat)
    1.11 -		return clients; /* don't touch floating order */
    1.12 -	for(min = c = clients; c; c = c->next)
    1.13 -		if(c->weight < min->weight)
    1.14 -			min = c;
    1.15 -	return min;
    1.16 -}
    1.17 -
    1.18 -static Client *
    1.19  nexttiled(Client *c) {
    1.20  	for(c = getnext(c); c && c->isfloat; c = getnext(c->next));
    1.21  	return c;
    1.22  }
    1.23  
    1.24  static void
    1.25 -reorder(void) {
    1.26 -	Client *c, *newclients, *tail;
    1.27 -
    1.28 -	newclients = tail = NULL;
    1.29 -	while((c = minclient())) {
    1.30 -		detach(c);
    1.31 -		if(tail) {
    1.32 -			c->prev = tail;
    1.33 -			tail->next = c;
    1.34 -			tail = c;
    1.35 -		}
    1.36 -		else
    1.37 -			tail = newclients = c;
    1.38 -	}
    1.39 -	clients = newclients;
    1.40 -}
    1.41 -
    1.42 -static void
    1.43  togglemax(Client *c) {
    1.44  	XEvent ev;
    1.45  		
    1.46 @@ -247,7 +217,6 @@
    1.47  	for(i = 0; i < ntags && !seltag[i]; i++);
    1.48  	if(i == ntags)
    1.49  		seltag[arg->i] = True; /* cannot toggle last view */
    1.50 -	reorder();
    1.51  	arrange();
    1.52  }
    1.53  
    1.54 @@ -258,7 +227,6 @@
    1.55  	for(i = 0; i < ntags; i++)
    1.56  		seltag[i] = False;
    1.57  	seltag[arg->i] = True;
    1.58 -	reorder();
    1.59  	arrange();
    1.60  }
    1.61  
    1.62 @@ -268,7 +236,6 @@
    1.63  
    1.64  	for(i = 0; i < ntags; i++)
    1.65  		seltag[i] = True;
    1.66 -	reorder();
    1.67  	arrange();
    1.68  }
    1.69