JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
several other additions/fixes, dwm is quite usable already
[dwm.git] / main.c
diff --git a/main.c b/main.c
index b63d07e..07e12aa 100644 (file)
--- a/main.c
+++ b/main.c
@@ -39,7 +39,7 @@ int screen, sx, sy, sw, sh, th;
 
 DC dc = {0};
 Client *clients = NULL;
-Client *stack = NULL;
+Client *sel = NULL;
 
 static Bool other_wm_running;
 static const char version[] =
@@ -168,13 +168,15 @@ startup_error_handler(Display *dpy, XErrorEvent *error)
 static void
 cleanup()
 {
-       while(clients)
-               unmanage(clients);
+       while(sel) {
+               resize(sel);
+               unmanage(sel);
+       }
        XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
 }
 
 void
-quit(void *aux)
+quit(Arg *arg)
 {
        running = False;
 }