# HG changeset patch # User Anselm R. Garbe # Date 1157645599 -7200 # Node ID 8089f22fdb4690608a31cab431f05f605226d070 # Parent 16c4e4c5fb15488f31287fd95bb05730dd062c04 hotfix 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);