From: Anselm R Garbe Date: Tue, 8 Sep 2009 12:30:18 +0000 (+0100) Subject: hard-core destruction X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=01056b66369f650d02145f27d1399141f93015df;p=dwm.git hard-core destruction --- diff --git a/dwm.c b/dwm.c index 413e795..cb296b5 100644 --- a/dwm.c +++ b/dwm.c @@ -1039,9 +1039,15 @@ killclient(const Arg *arg) { ev.xclient.data.l[1] = CurrentTime; XSendEvent(dpy, selmon->sel->win, False, NoEventMask, &ev); } - else + else { + XGrabServer(dpy); + XSetErrorHandler(xerrordummy); + XSetCloseDownMode(dpy, DestroyAll); XKillClient(dpy, selmon->sel->win); - XSync(dpy, False); + XSync(dpy, False); + XSetErrorHandler(xerror); + XUngrabServer(dpy); + } } void