no, ordering floating clients at the end seems better
[dwm.git] / client.c
index 81f4280..ecb9178 100644 (file)
--- a/client.c
+++ b/client.c
@@ -247,6 +247,8 @@ manage(Window w, XWindowAttributes *wa)
                c->isfloat = trans
                        || (c->maxw && c->minw &&
                                c->maxw == c->minw && c->maxh == c->minh);
+       if(c->isfloat)
+               c->weight = ntags;
 
        if(clients)
                clients->prev = c;
@@ -254,13 +256,12 @@ manage(Window w, XWindowAttributes *wa)
        clients = c;
 
        settitle(c);
-       if(isvisible(c))
-               sel = c;
-       arrange(NULL);
+       ban(c);
        XMapWindow(dpy, c->win);
        XMapWindow(dpy, c->twin);
        if(isvisible(c))
                focus(c);
+       arrange(NULL);
 }
 
 void