diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-07 18:13:19 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-07 18:13:19 +0200 |
| commit | 2e68f22118438fed885c8cc3ccb8be94437eb327 (patch) | |
| tree | b37c41057609094398cbeca2370d7a4125834a30 | |
| parent | simplified unmanage (diff) | |
| download | dwm-2e68f22118438fed885c8cc3ccb8be94437eb327.tar.gz dwm-2e68f22118438fed885c8cc3ccb8be94437eb327.zip | |
hotfix
| -rw-r--r-- | client.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -418,6 +418,7 @@ unmanage(Client *c) | |||
| 418 | XSetErrorHandler(xerrordummy); | 418 | XSetErrorHandler(xerrordummy); |
| 419 | 419 | ||
| 420 | detach(c); | 420 | detach(c); |
| 421 | detachstack(c); | ||
| 421 | if(sel == c) { | 422 | if(sel == c) { |
| 422 | for(sel = stack; sel && !isvisible(sel); sel = sel->snext); | 423 | for(sel = stack; sel && !isvisible(sel); sel = sel->snext); |
| 423 | focus(sel); | 424 | focus(sel); |
| @@ -426,7 +427,6 @@ unmanage(Client *c) | |||
| 426 | XUngrabButton(dpy, AnyButton, AnyModifier, c->win); | 427 | XUngrabButton(dpy, AnyButton, AnyModifier, c->win); |
| 427 | XDestroyWindow(dpy, c->twin); | 428 | XDestroyWindow(dpy, c->twin); |
| 428 | 429 | ||
| 429 | detachstack(c); | ||
| 430 | free(c->tags); | 430 | free(c->tags); |
| 431 | free(c); | 431 | free(c); |
| 432 | 432 | ||
