JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
maybe this might work
[dwm.git] / client.c
index 46693cd..cac848e 100644 (file)
--- a/client.c
+++ b/client.c
@@ -99,14 +99,6 @@ focus(Client *c)
                }
        }
        if(c) {
-               if((c->isfloat || arrange == dofloat) && (c != clients)) {
-                       detach(c);
-                       if(clients) {
-                               clients->prev = c;
-                               c->next = clients;
-                       }
-                       clients = c;
-               }
                grabbuttons(c, True);
                drawtitle(c);
                XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
@@ -251,6 +243,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;