summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-13 17:09:35 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-13 17:09:35 +0200
commitc47da143bdf5b4e3924a411f42648d4b3e86ff00 (patch)
tree4f777c8623600e707a8631e03925007f2a7cf57e /main.c
parentseveral fixes (diff)
downloaddwm-c47da143bdf5b4e3924a411f42648d4b3e86ff00.tar.gz
dwm-c47da143bdf5b4e3924a411f42648d4b3e86ff00.zip
implemented tagging a client
Diffstat (limited to 'main.c')
-rw-r--r--main.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/main.c b/main.c
index b63d07e..543d156 100644
--- a/main.c
+++ b/main.c
@@ -38,8 +38,9 @@ int tsel = Tdev; /* default tag */
38int screen, sx, sy, sw, sh, th; 38int screen, sx, sy, sw, sh, th;
39 39
40DC dc = {0}; 40DC dc = {0};
41Client *clients = NULL; 41Client *cstart = NULL;
42Client *stack = NULL; 42Client *cend = NULL;
43Client *csel = NULL;
43 44
44static Bool other_wm_running; 45static Bool other_wm_running;
45static const char version[] = 46static const char version[] =
@@ -168,13 +169,13 @@ startup_error_handler(Display *dpy, XErrorEvent *error)
168static void 169static void
169cleanup() 170cleanup()
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
176void 177void
177quit(void *aux) 178quit(Arg *arg)
178{ 179{
179 running = False; 180 running = False;
180} 181}