aewl

diff tag.c @ 429:a31de8605f72

no, ordering floating clients at the end seems better
author Anselm R. Garbe <arg@10kloc.org>
date Tue, 05 Sep 2006 19:26:34 +0200
parents e689e540607a
children 1e8aba00964e
line diff
     1.1 --- a/tag.c	Tue Sep 05 18:43:15 2006 +0200
     1.2 +++ b/tag.c	Tue Sep 05 19:26:34 2006 +0200
     1.3 @@ -106,7 +106,8 @@
     1.4  	if(!matched)
     1.5  		for(i = 0; i < ntags; i++)
     1.6  			c->tags[i] = seltag[i];
     1.7 -	for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++);
     1.8 +	if(!c->isfloat)
     1.9 +		for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++);
    1.10  }
    1.11  
    1.12  void
    1.13 @@ -120,7 +121,8 @@
    1.14  	for(i = 0; i < ntags; i++)
    1.15  		sel->tags[i] = False;
    1.16  	sel->tags[arg->i] = True;
    1.17 -	sel->weight = arg->i;
    1.18 +	if(!sel->isfloat)
    1.19 +		sel->weight = arg->i;
    1.20  	arrange(NULL);
    1.21  }
    1.22  
    1.23 @@ -136,6 +138,7 @@
    1.24  	for(i = 0; i < ntags && !sel->tags[i]; i++);
    1.25  	if(i == ntags)
    1.26  		sel->tags[arg->i] = True;
    1.27 -	sel->weight = (i == ntags) ? arg->i : i;
    1.28 +	if(!sel->isfloat)
    1.29 +		sel->weight = (i == ntags) ? arg->i : i;
    1.30  	arrange(NULL);
    1.31  }