about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2009-09-08 13:30:18 +0100
committerAnselm R Garbe <garbeam@gmail.com>2009-09-08 13:30:18 +0100
commit01056b66369f650d02145f27d1399141f93015df (patch)
treeec58d2e73a2fb426e2b47eb217a2a4e560227497
parenteb260b1a414fb82fc01d3638e3e77495297c45d5 (diff)
downloaddwm-01056b66369f650d02145f27d1399141f93015df.tar.gz
hard-core destruction
-rw-r--r--dwm.c10
1 files changed, 8 insertions, 2 deletions
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
^
ff8ec9bc ^
418ea7d3 ^
ff8ec9bc ^
90538f23 ^
71e4f381 ^
90538f23 ^
ff8ec9bc ^
90538f23 ^
ff8ec9bc ^
6488bfcf ^
ff8ec9bc ^

90538f23 ^
ff8ec9bc ^
90538f23 ^
f7746778 ^
69e477b1 ^
f7746778 ^
531f14c9 ^
de013be7 ^
71e4f381 ^
da438fa9 ^
71e4f381 ^

69e477b1 ^

56c92481 ^
c26aef11 ^
69e477b1 ^
7205c246 ^
69e477b1 ^

56c92481 ^
c26aef11 ^
56c92481 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56