about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPremysl Hruby <dfenze@gmail.com>2008-08-25 11:43:45 +0200
committerPremysl Hruby <dfenze@gmail.com>2008-08-25 11:43:45 +0200
commit4b3b597da3523078b5f30b3571c896bf2056fcb5 (patch)
tree0080b2e5e35aabe128da7a4df948966a9e94649f
parent288cf78b180db846ef2481124f3e7a8fe66c01f2 (diff)
downloaddwm-4b3b597da3523078b5f30b3571c896bf2056fcb5.tar.gz
WM_NAME is builtin atom
-rw-r--r--dwm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dwm.c b/dwm.c
index 89bca14..52a3540 100644
--- a/dwm.c
+++ b/dwm.c
@@ -60,7 +60,7 @@
 enum { CurNormal, CurResize, CurMove, CurLast };        /* cursor */
 enum { ColBorder, ColFG, ColBG, ColLast };              /* color */
 enum { NetSupported, NetWMName, NetLast };              /* EWMH atoms */
-enum { WMProtocols, WMDelete, WMName, WMState, WMLast };/* default atoms */
+enum { WMProtocols, WMDelete, WMState, WMLast };        /* default atoms */
 enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
        ClkClientWin, ClkRootWin, ClkLast };             /* clicks */
 
@@ -1326,7 +1326,6 @@ setup(void) {
 	/* init atoms */
 	wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False);
 	wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False);
-	wmatom[WMName] = XInternAtom(dpy, "WM_NAME", False);
 	wmatom[WMState] = XInternAtom(dpy, "WM_STATE", False);
 	netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
 	netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False);
@@ -1634,7 +1633,7 @@ updatesizehints(Client *c) {
 void
 updatetitle(Client *c) {
 	if(!gettextprop(c->win, netatom[NetWMName], c->name, sizeof c->name))
-		gettextprop(c->win, wmatom[WMName], c->name, sizeof c->name);
+		gettextprop(c->win, XA_WM_NAME, c->name, sizeof c->name);
 }
 
 void
' href='/akkartik/mu/commit/html/026call.cc.html?h=hlt&id=bfa3f5ba3930fb3919d94e97929a2b962d104e10'>bfa3f5ba ^
3e1349d2 ^
bfa3f5ba ^




9e751bb8 ^
4690ce81 ^
4a39d12d ^
bfa3f5ba ^

70f4e9b6 ^
bfa3f5ba ^
672e3e50 ^

a654e4ec ^



e5c11a51 ^






















a654e4ec ^

672e3e50 ^
e5c11a51 ^
a654e4ec ^
204dae92 ^


201458e3 ^
204dae92 ^







201458e3 ^
204dae92 ^






















201458e3 ^
204dae92 ^

201458e3 ^
9e751bb8 ^


204dae92 ^

9e751bb8 ^
204dae92 ^







201458e3 ^
204dae92 ^



201458e3 ^
204dae92 ^
9e751bb8 ^
1c2d788b ^
9e751bb8 ^
204dae92 ^




bfa3f5ba ^



















1c2d788b ^
bfa3f5ba ^







1c2d788b ^
bfa3f5ba ^









































4945e77a ^
bfa3f5ba ^





1c2d788b ^
bfa3f5ba ^








672e3e50 ^


a654e4ec ^
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227