summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.c b/main.c
index 2140d89..6d84a77 100644
--- a/main.c
+++ b/main.c
@@ -11,6 +11,7 @@
11#include <X11/keysym.h> 11#include <X11/keysym.h>
12#include <X11/Xatom.h> 12#include <X11/Xatom.h>
13#include <X11/Xproto.h> 13#include <X11/Xproto.h>
14#include <X11/Xutil.h>
14 15
15/* extern */ 16/* extern */
16 17
@@ -19,7 +20,7 @@ int screen, sx, sy, sw, sh, wax, way, waw, wah;
19unsigned int bh, ntags; 20unsigned int bh, ntags;
20unsigned int bpos = BARPOS; 21unsigned int bpos = BARPOS;
21unsigned int numlockmask = 0; 22unsigned int numlockmask = 0;
22Atom dwmtags, wmatom[WMLast], netatom[NetLast]; 23Atom dwmconfig, wmatom[WMLast], netatom[NetLast];
23Bool *seltag; 24Bool *seltag;
24Bool selscreen = True; 25Bool selscreen = True;
25Client *clients = NULL; 26Client *clients = NULL;
@@ -41,7 +42,7 @@ cleanup(void) {
41 close(STDIN_FILENO); 42 close(STDIN_FILENO);
42 while(stack) { 43 while(stack) {
43 unban(stack); 44 unban(stack);
44 unmanage(stack); 45 unmanage(stack, NormalState);
45 } 46 }
46 if(dc.font.set) 47 if(dc.font.set)
47 XFreeFontSet(dpy, dc.font.set); 48 XFreeFontSet(dpy, dc.font.set);
@@ -139,7 +140,7 @@ setup(void) {
139 XSetWindowAttributes wa; 140 XSetWindowAttributes wa;
140 141
141 /* init atoms */ 142 /* init atoms */
142 dwmtags = XInternAtom(dpy, "__DWM_TAGS", False); 143 dwmconfig = XInternAtom(dpy, "_DWM_CONFIG", False);
143 wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False); 144 wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False);
144 wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False); 145 wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False);
145 wmatom[WMState] = XInternAtom(dpy, "WM_STATE", False); 146 wmatom[WMState] = XInternAtom(dpy, "WM_STATE", False);