fix client position in list also on tag and toggletag
authorAnselm R. Garbe <arg@10kloc.org>
Tue, 29 Aug 2006 09:25:14 +0200
changeset 379 fc279cd6c7be
parent 378 83576f5f0a90
child 380 4bf79305d675
fix client position in list also on tag and toggletag
tag.c
--- a/tag.c	Tue Aug 29 09:23:44 2006 +0200
+++ b/tag.c	Tue Aug 29 09:25:14 2006 +0200
@@ -120,6 +120,8 @@
 		sel->tags[i] = False;
 	sel->tags[arg->i] = True;
 	settitle(sel);
+	detach(sel);
+	attach(sel);
 	if(!isvisible(sel))
 		arrange(NULL);
 	else
@@ -139,6 +141,8 @@
 	if(i == ntags)
 		sel->tags[arg->i] = True;
 	settitle(sel);
+	detach(sel);
+	attach(sel);
 	if(!isvisible(sel))
 		arrange(NULL);
 	else