X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/da0b2a2f31d5a849464215a86a968ec3a1af2f73..e8389a4cc0f1c35bcb7e7646102bd6d6a830207e:/client.c diff --git a/client.c b/client.c index 46693cd..cac848e 100644 --- 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;