JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
still something wrong with reorder()
[dwm.git] / client.c
index 0a7df77..9645444 100644 (file)
--- a/client.c
+++ b/client.c
@@ -241,7 +241,10 @@ manage(Window w, XWindowAttributes *wa)
                        || (c->maxw && c->minw &&
                                c->maxw == c->minw && c->maxh == c->minh);
 
-       attach(c);
+       if(clients)
+               clients->prev = c;
+       c->next = clients;
+       clients = c;
 
        settitle(c);
        if(isvisible(c))