aewl
changeset 442:056a5072c70a
no this is better
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Wed, 06 Sep 2006 15:36:42 +0200 |
parents | 785bad5f21dd |
children | 548084f8d92e |
files | client.c view.c |
diffstat | 2 files changed, 11 insertions(+), 11 deletions(-) [+] |
line diff
1.1 --- a/client.c Wed Sep 06 15:30:28 2006 +0200 1.2 +++ b/client.c Wed Sep 06 15:36:42 2006 +0200 1.3 @@ -99,13 +99,6 @@ 1.4 } 1.5 } 1.6 if(c) { 1.7 - if(c->isfloat || arrange == dofloat) { 1.8 - detach(c); 1.9 - if(clients) 1.10 - clients->prev = c; 1.11 - c->next = clients; 1.12 - clients = c; 1.13 - } 1.14 grabbuttons(c, True); 1.15 drawtitle(c); 1.16 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
2.1 --- a/view.c Wed Sep 06 15:30:28 2006 +0200 2.2 +++ b/view.c Wed Sep 06 15:36:42 2006 +0200 2.3 @@ -18,6 +18,15 @@ 2.4 return min; 2.5 } 2.6 2.7 +static void 2.8 +pop(Client *c) 2.9 +{ 2.10 + detach(c); 2.11 + if(clients) 2.12 + clients->prev = c; 2.13 + c->next = clients; 2.14 + clients = c; 2.15 +} 2.16 2.17 static void 2.18 reorder() 2.19 @@ -223,6 +232,7 @@ 2.20 return; 2.21 } 2.22 if(sel->isfloat || arrange == dofloat) { 2.23 + pop(sel); 2.24 XRaiseWindow(dpy, sel->win); 2.25 XRaiseWindow(dpy, sel->twin); 2.26 } 2.27 @@ -297,10 +307,7 @@ 2.28 if((c = sel) == nexttiled(clients)) 2.29 if(!(c = nexttiled(c->next))) 2.30 return; 2.31 - detach(c); 2.32 - c->next = clients; 2.33 - clients->prev = c; 2.34 - clients = c; 2.35 + pop(c); 2.36 focus(c); 2.37 arrange(NULL); 2.38 }