hard-core destruction
This commit is contained in:
parent
eb260b1a41
commit
01056b6636
10
dwm.c
10
dwm.c
|
@ -1039,9 +1039,15 @@ killclient(const Arg *arg) {
|
||||||
ev.xclient.data.l[1] = CurrentTime;
|
ev.xclient.data.l[1] = CurrentTime;
|
||||||
XSendEvent(dpy, selmon->sel->win, False, NoEventMask, &ev);
|
XSendEvent(dpy, selmon->sel->win, False, NoEventMask, &ev);
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
|
XGrabServer(dpy);
|
||||||
|
XSetErrorHandler(xerrordummy);
|
||||||
|
XSetCloseDownMode(dpy, DestroyAll);
|
||||||
XKillClient(dpy, selmon->sel->win);
|
XKillClient(dpy, selmon->sel->win);
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
|
XSetErrorHandler(xerror);
|
||||||
|
XUngrabServer(dpy);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue