Mercurial > aewl
diff tag.c @ 381:b00cc483d13b
still something wrong with reorder()
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Tue, 29 Aug 2006 13:40:09 +0200 |
parents | fc279cd6c7be |
children | 2ec9cead84a7 |
line wrap: on
line diff
--- 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