summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/main.c b/main.c
index 79b301d..338fed4 100644
--- a/main.c
+++ b/main.c
@@ -20,7 +20,7 @@ int screen, sx, sy, sw, sh, wax, way, waw, wah;
20unsigned int bh, ntags; 20unsigned int bh, ntags;
21unsigned int bpos = BARPOS; 21unsigned int bpos = BARPOS;
22unsigned int numlockmask = 0; 22unsigned int numlockmask = 0;
23Atom dwmprops, wmatom[WMLast], netatom[NetLast]; 23Atom wmatom[WMLast], netatom[NetLast];
24Bool *seltags; 24Bool *seltags;
25Bool selscreen = True; 25Bool selscreen = True;
26Client *clients = NULL; 26Client *clients = NULL;
@@ -42,7 +42,7 @@ cleanup(void) {
42 close(STDIN_FILENO); 42 close(STDIN_FILENO);
43 while(stack) { 43 while(stack) {
44 unban(stack); 44 unban(stack);
45 unmanage(stack, NormalState); 45 unmanage(stack);
46 } 46 }
47 if(dc.font.set) 47 if(dc.font.set)
48 XFreeFontSet(dpy, dc.font.set); 48 XFreeFontSet(dpy, dc.font.set);
@@ -165,7 +165,6 @@ setup(void) {
165 XSetWindowAttributes wa; 165 XSetWindowAttributes wa;
166 166
167 /* init atoms */ 167 /* init atoms */
168 dwmprops = XInternAtom(dpy, "_DWM_PROPERTIES", False);
169 wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False); 168 wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False);
170 wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False); 169 wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False);
171 wmatom[WMName] = XInternAtom(dpy, "WM_NAME", False); 170 wmatom[WMName] = XInternAtom(dpy, "WM_NAME", False);
@@ -231,7 +230,6 @@ setup(void) {
231 XSetFont(dpy, dc.gc, dc.font.xfont->fid); 230 XSetFont(dpy, dc.gc, dc.font.xfont->fid);
232 /* multihead support */ 231 /* multihead support */
233 selscreen = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask); 232 selscreen = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask);
234 getdwmprops();
235} 233}
236 234
237/* 235/*