projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb260b1
)
hard-core destruction
author
Anselm R Garbe
<garbeam@gmail.com>
Tue, 8 Sep 2009 12:30:18 +0000
(13:30 +0100)
committer
Anselm R Garbe
<garbeam@gmail.com>
Tue, 8 Sep 2009 12:30:18 +0000
(13:30 +0100)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index 413e79541b2b0d5b1abca311df621a779f58fc48..cb296b5c99fd47c395c7c322592e12a1fa650050 100644
(file)
--- 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