diff options
author | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-15 19:27:32 +0200 |
---|---|---|
committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-15 19:27:32 +0200 |
commit | 10d13f01ff764ba0e875adf5d2b83c49aa08d148 (patch) | |
tree | cad3a1162879cdf53d3a6ac7f97a025d4a65ff40 /main.c | |
parent | 8fcc4ff0ae2b20f9605370cee02ebcda50f8777c (diff) | |
download | dwm-10d13f01ff764ba0e875adf5d2b83c49aa08d148.tar.gz |
fififi
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
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 @@ #include <X11/keysym.h> #include <X11/Xatom.h> #include <X11/Xproto.h> +#include <X11/Xutil.h> /* extern */ @@ -19,7 +20,7 @@ int screen, sx, sy, sw, sh, wax, way, waw, wah; unsigned int bh, ntags; unsigned int bpos = BARPOS; unsigned int numlockmask = 0; -Atom dwmtags, wmatom[WMLast], netatom[NetLast]; +Atom dwmconfig, wmatom[WMLast], netatom[NetLast]; Bool *seltag; Bool selscreen = True; Client *clients = NULL; @@ -41,7 +42,7 @@ cleanup(void) { close(STDIN_FILENO); while(stack) { unban(stack); - unmanage(stack); + unmanage(stack, NormalState); } if(dc.font.set) XFreeFontSet(dpy, dc.font.set); @@ -139,7 +140,7 @@ setup(void) { XSetWindowAttributes wa; /* init atoms */ - dwmtags = XInternAtom(dpy, "__DWM_TAGS", False); + dwmconfig = XInternAtom(dpy, "_DWM_CONFIG", False); wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False); wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False); wmatom[WMState] = XInternAtom(dpy, "WM_STATE", False); |