X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.c;h=6d84a77a4d4335f56ab5c438bf0a2d2b81c2e491;hb=e40448fd6340620354d82d801d975eaa53dbd924;hp=d72f13db91d0d60feae6fc0571457e38068bcaf4;hpb=4bf3b019535da3aa14cfccebd65ea726cbd15862;p=dwm.git diff --git a/main.c b/main.c index d72f13d..6d84a77 100644 --- a/main.c +++ b/main.c @@ -11,6 +11,7 @@ #include #include #include +#include /* 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 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,6 +140,7 @@ setup(void) { XSetWindowAttributes wa; /* init atoms */ + 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);