hotfix
authorAnselm R. Garbe <arg@10kloc.org>
Thu, 07 Sep 2006 18:13:19 +0200
changeset 448 8089f22fdb46
parent 447 16c4e4c5fb15
child 449 78d36a1dd1d9
hotfix
client.c
--- a/client.c	Thu Sep 07 18:12:40 2006 +0200
+++ b/client.c	Thu Sep 07 18:13:19 2006 +0200
@@ -418,6 +418,7 @@
 	XSetErrorHandler(xerrordummy);
 
 	detach(c);
+	detachstack(c);
 	if(sel == c) {
 		for(sel = stack; sel && !isvisible(sel); sel = sel->snext);
 		focus(sel);
@@ -426,7 +427,6 @@
 	XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
 	XDestroyWindow(dpy, c->twin);
 
-	detachstack(c);
 	free(c->tags);
 	free(c);