tag.c
changeset 381 b00cc483d13b
parent 379 fc279cd6c7be
child 383 2ec9cead84a7
--- 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