no this is better
Anselm R. Garbe arg@10kloc.org
Wed, 06 Sep 2006 15:36:42 +0200
M
view.c
→
view.c
@@ -18,6 +18,15 @@ min = c;
return min; } +static void +pop(Client *c) +{ + detach(c); + if(clients) + clients->prev = c; + c->next = clients; + clients = c; +} static void reorder()@@ -223,6 +232,7 @@ drawstatus();
return; } if(sel->isfloat || arrange == dofloat) { + pop(sel); XRaiseWindow(dpy, sel->win); XRaiseWindow(dpy, sel->twin); }@@ -297,10 +307,7 @@
if((c = sel) == nexttiled(clients)) if(!(c = nexttiled(c->next))) return; - detach(c); - c->next = clients; - clients->prev = c; - clients = c; + pop(c); focus(c); arrange(NULL); }