dwm-meillo
diff view.c @ 442:056a5072c70a
no this is better
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Wed, 06 Sep 2006 15:36:42 +0200 |
parents | 433a5c662f73 |
children | 548084f8d92e |
line diff
1.1 --- a/view.c Wed Sep 06 15:30:28 2006 +0200 1.2 +++ b/view.c Wed Sep 06 15:36:42 2006 +0200 1.3 @@ -18,6 +18,15 @@ 1.4 return min; 1.5 } 1.6 1.7 +static void 1.8 +pop(Client *c) 1.9 +{ 1.10 + detach(c); 1.11 + if(clients) 1.12 + clients->prev = c; 1.13 + c->next = clients; 1.14 + clients = c; 1.15 +} 1.16 1.17 static void 1.18 reorder() 1.19 @@ -223,6 +232,7 @@ 1.20 return; 1.21 } 1.22 if(sel->isfloat || arrange == dofloat) { 1.23 + pop(sel); 1.24 XRaiseWindow(dpy, sel->win); 1.25 XRaiseWindow(dpy, sel->twin); 1.26 } 1.27 @@ -297,10 +307,7 @@ 1.28 if((c = sel) == nexttiled(clients)) 1.29 if(!(c = nexttiled(c->next))) 1.30 return; 1.31 - detach(c); 1.32 - c->next = clients; 1.33 - clients->prev = c; 1.34 - clients = c; 1.35 + pop(c); 1.36 focus(c); 1.37 arrange(NULL); 1.38 }