diff -r 4bf79305d675 -r b00cc483d13b tag.c --- a/tag.c Tue Aug 29 09:57:57 2006 +0200 +++ b/tag.c Tue Aug 29 13:40:09 2006 +0200 @@ -106,6 +106,8 @@ if(!matched) for(i = 0; i < ntags; i++) c->tags[i] = seltag[i]; + for(i = 0; i < ntags && !c->tags[i]; i++); + c->weight = i; } void @@ -120,8 +122,6 @@ sel->tags[i] = False; sel->tags[arg->i] = True; settitle(sel); - detach(sel); - attach(sel); if(!isvisible(sel)) arrange(NULL); else @@ -141,8 +141,6 @@ if(i == ntags) sel->tags[arg->i] = True; settitle(sel); - detach(sel); - attach(sel); if(!isvisible(sel)) arrange(NULL); else