Mercurial > aewl
comparison client.c @ 448:8089f22fdb46
hotfix
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Thu, 07 Sep 2006 18:13:19 +0200 |
parents | 16c4e4c5fb15 |
children | 728c9089b079 |
comparison
equal
deleted
inserted
replaced
447:16c4e4c5fb15 | 448:8089f22fdb46 |
---|---|
416 { | 416 { |
417 XGrabServer(dpy); | 417 XGrabServer(dpy); |
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); |
424 } | 425 } |
425 | 426 |
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 |
433 XSync(dpy, False); | 433 XSync(dpy, False); |
434 XSetErrorHandler(xerror); | 434 XSetErrorHandler(xerror); |