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 | fix of resize (thanks Sander for the hint!) (diff) | |
| download | dwm-10d13f01ff764ba0e875adf5d2b83c49aa08d148.tar.gz dwm-10d13f01ff764ba0e875adf5d2b83c49aa08d148.zip | |
fififi
Diffstat (limited to '')
| -rw-r--r-- | main.c | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -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; | |||
| 19 | unsigned int bh, ntags; | 20 | unsigned int bh, ntags; |
| 20 | unsigned int bpos = BARPOS; | 21 | unsigned int bpos = BARPOS; |
| 21 | unsigned int numlockmask = 0; | 22 | unsigned int numlockmask = 0; |
| 22 | Atom dwmtags, wmatom[WMLast], netatom[NetLast]; | 23 | Atom dwmconfig, wmatom[WMLast], netatom[NetLast]; |
| 23 | Bool *seltag; | 24 | Bool *seltag; |
| 24 | Bool selscreen = True; | 25 | Bool selscreen = True; |
| 25 | Client *clients = NULL; | 26 | Client *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); |
