about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--client.c5
-rw-r--r--dwm.h2
-rw-r--r--event.c13
-rw-r--r--main.c1
4 files changed, 1 insertions, 20 deletions
diff --git a/client.c b/client.c
index 9b91ab6..f92df83 100644
--- a/client.c
+++ b/client.c
@@ -58,8 +58,6 @@ focus(Client *c)
 	drawtitle(c);
 	XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
 	XSync(dpy, False);
-	XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32,
-			PropModeReplace, (unsigned char *)&c->win, 1);
 	while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
 }
 
@@ -461,9 +459,6 @@ unmanage(Client *c)
 	arrange(NULL);
 	if(sel)
 		focus(sel);
-	else
-		XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32,
-				PropModeReplace, (unsigned char *)NULL, 1);
 }
 
 void
diff --git a/dwm.h b/dwm.h
index efef213..57d628a 100644
--- a/dwm.h
+++ b/dwm.h
@@ -22,7 +22,7 @@ union Arg {
 };
 
 /* atoms */
-enum { NetSupported, NetWMName, NetActiveWindow, NetLast };
+enum { NetSupported, NetWMName, NetLast };
 enum { WMProtocols, WMDelete, WMLast };
 
 /* cursor */
diff --git a/event.c b/event.c
index c3169aa..2e4f62e 100644
--- a/event.c
+++ b/event.c
@@ -146,18 +146,6 @@ buttonpress(XEvent *e)
 }
 
 static void
-clientmessage(XEvent *e)
-{
-	Client *c;
-	XClientMessageEvent *ev = &e->xclient;
-
-	if(ev->message_type == netatom[NetActiveWindow]) {
-		if((c = getclient(ev->window)) && c->tags[tsel])
-			focus(c);
-	}
-}
-
-static void
 configurerequest(XEvent *e)
 {
 	Client *c;
@@ -351,7 +339,6 @@ unmapnotify(XEvent *e)
 
 void (*handler[LASTEvent]) (XEvent *) = {
 	[ButtonPress] = buttonpress,
-	[ClientMessage] = clientmessage,
 	[ConfigureRequest] = configurerequest,
 	[DestroyNotify] = destroynotify,
 	[EnterNotify] = enternotify,
diff --git a/main.c b/main.c
index ded4761..5efe599 100644
--- a/main.c
+++ b/main.c
@@ -201,7 +201,6 @@ main(int argc, char *argv[])
 	wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False);
 	netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
 	netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False);
-	netatom[NetActiveWindow] = XInternAtom(dpy, "_NET_ACTIVE_WINDOW", False);
 	XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32,
 			PropModeReplace, (unsigned char *) netatom, NetLast);
 
h?h=5.1&id=83d23908d3438d7f1f62533a7c8d96fc1019df55'>^
a05beb6 ^

1076f2b


1076f2b
439e15d ^
1076f2b

366d81e ^


586f663 ^

366d81e ^

1076f2b
439e15d ^
3399650 ^
1076f2b
3399650 ^
439e15d ^
1076f2b
dfd84f9 ^
d6e0e6e ^
39677ec ^

3399650 ^
39677ec ^
439e15d ^



0053620 ^
3399650 ^



d6e0e6e ^
b9da4b0 ^
a05beb6 ^
2a0fc84 ^
dfd84f9 ^

4641aa2 ^

3399650 ^

dfd84f9 ^
439e15d ^
4641aa2 ^


366d81e ^

16c67f3 ^
366d81e ^
b9da4b0 ^



1076f2b
0053620 ^
3399650 ^

4641aa2 ^

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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95