diff -r 16c4e4c5fb15 -r 8089f22fdb46 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);