Mercurial > aewl
comparison main.c @ 49:466591c2f967
implemented tagging a client
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Thu, 13 Jul 2006 17:09:35 +0200 |
parents | 989178822938 |
children | 148f25ed0ad7 |
comparison
equal
deleted
inserted
replaced
48:ceff29af8c7b | 49:466591c2f967 |
---|---|
36 char stext[1024]; | 36 char stext[1024]; |
37 int tsel = Tdev; /* default tag */ | 37 int tsel = Tdev; /* default tag */ |
38 int screen, sx, sy, sw, sh, th; | 38 int screen, sx, sy, sw, sh, th; |
39 | 39 |
40 DC dc = {0}; | 40 DC dc = {0}; |
41 Client *clients = NULL; | 41 Client *cstart = NULL; |
42 Client *stack = NULL; | 42 Client *cend = NULL; |
43 Client *csel = NULL; | |
43 | 44 |
44 static Bool other_wm_running; | 45 static Bool other_wm_running; |
45 static const char version[] = | 46 static const char version[] = |
46 "dwm - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n"; | 47 "dwm - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n"; |
47 static int (*x_error_handler) (Display *, XErrorEvent *); | 48 static int (*x_error_handler) (Display *, XErrorEvent *); |
166 } | 167 } |
167 | 168 |
168 static void | 169 static void |
169 cleanup() | 170 cleanup() |
170 { | 171 { |
171 while(clients) | 172 while(csel) |
172 unmanage(clients); | 173 unmanage(csel); |
173 XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); | 174 XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); |
174 } | 175 } |
175 | 176 |
176 void | 177 void |
177 quit(void *aux) | 178 quit(Arg *arg) |
178 { | 179 { |
179 running = False; | 180 running = False; |
180 } | 181 } |
181 | 182 |
182 int | 183 int |