hard-core destruction
Anselm R Garbe garbeam@gmail.com
Tue, 08 Sep 2009 13:30:18 +0100
1 files changed,
8 insertions(+),
2 deletions(-)
jump to
M
dwm.c
→
dwm.c
@@ -1039,9 +1039,15 @@ ev.xclient.data.l[0] = wmatom[WMDelete];
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