dwm-meillo
diff tag.c @ 416:e689e540607a
sanders toggletag patch is much more elegant
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Tue, 05 Sep 2006 09:37:45 +0200 |
parents | 761d0cd6e504 |
children | a31de8605f72 |
line diff
1.1 --- a/tag.c Tue Sep 05 09:02:37 2006 +0200 1.2 +++ b/tag.c Tue Sep 05 09:37:45 2006 +0200 1.3 @@ -136,6 +136,6 @@ 1.4 for(i = 0; i < ntags && !sel->tags[i]; i++); 1.5 if(i == ntags) 1.6 sel->tags[arg->i] = True; 1.7 - for(sel->weight = 0; sel->weight < ntags && !sel->tags[sel->weight]; sel->weight++); 1.8 + sel->weight = (i == ntags) ? arg->i : i; 1.9 arrange(NULL); 1.10 }