Anselm R. Garbe 19 years ago
parent
commit
2e68f22118
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client.c

+ 1 - 1
client.c

@@ -418,6 +418,7 @@ unmanage(Client *c)
 	XSetErrorHandler(xerrordummy);
 
 	detach(c);
+	detachstack(c);
 	if(sel == c) {
 		for(sel = stack; sel && !isvisible(sel); sel = sel->snext);
 		focus(sel);
@@ -426,7 +427,6 @@ unmanage(Client *c)
 	XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
 	XDestroyWindow(dpy, c->twin);
 
-	detachstack(c);
 	free(c->tags);
 	free(c);