dwm-meillo

diff tag.c @ 430:1e8aba00964e

no, reodering floating clients definately breaks the manage() policy which attaches all clients zoomed (otherwise higher-weight clients couldn't be attached zoomed, which sucks)
author Anselm R. Garbe <arg@10kloc.org>
date Wed, 06 Sep 2006 09:13:31 +0200
parents a31de8605f72
children a230e4432bb7
line diff
     1.1 --- a/tag.c	Tue Sep 05 19:26:34 2006 +0200
     1.2 +++ b/tag.c	Wed Sep 06 09:13:31 2006 +0200
     1.3 @@ -106,8 +106,7 @@
     1.4  	if(!matched)
     1.5  		for(i = 0; i < ntags; i++)
     1.6  			c->tags[i] = seltag[i];
     1.7 -	if(!c->isfloat)
     1.8 -		for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++);
     1.9 +	for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++);
    1.10  }
    1.11  
    1.12  void
    1.13 @@ -121,8 +120,7 @@
    1.14  	for(i = 0; i < ntags; i++)
    1.15  		sel->tags[i] = False;
    1.16  	sel->tags[arg->i] = True;
    1.17 -	if(!sel->isfloat)
    1.18 -		sel->weight = arg->i;
    1.19 +	sel->weight = arg->i;
    1.20  	arrange(NULL);
    1.21  }
    1.22  
    1.23 @@ -138,7 +136,6 @@
    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 -	if(!sel->isfloat)
    1.28 -		sel->weight = (i == ntags) ? arg->i : i;
    1.29 +	sel->weight = (i == ntags) ? arg->i : i;
    1.30  	arrange(NULL);
    1.31  }