X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=client.c;h=46693cd7cc4cdbb2c76e966c9f7cb02373313375;hp=586a87f696bf9d9a030387d67d83853b2b891a67;hb=da0b2a2f31d5a849464215a86a968ec3a1af2f73;hpb=2378a558a2f85e140b660d8460c045e7b746903b diff --git a/client.c b/client.c index 586a87f..46693cd 100644 --- a/client.c +++ b/client.c @@ -99,6 +99,14 @@ 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);