{
Client *c, *min;
+ if((clients && clients->isfloat) || arrange == dofloat)
+ return clients; /* don't touch floating order */
for(min = c = clients; c; c = c->next)
if(c->weight < min->weight)
min = c;
return min;
}
-static void
-pop(Client *c)
-{
- detach(c);
- if(clients)
- clients->prev = c;
- c->next = clients;
- clients = c;
-}
-
static void
reorder()
{
return;
}
if(sel->isfloat || arrange == dofloat) {
- pop(sel);
XRaiseWindow(dpy, sel->win);
XRaiseWindow(dpy, sel->twin);
}
if((c = sel) == nexttiled(clients))
if(!(c = nexttiled(c->next)))
return;
- pop(c);
+ detach(c);
+ if(clients)
+ clients->prev = c;
+ c->next = clients;
+ clients = c;
focus(c);
arrange(NULL);
}