dwm-meillo
diff client.c @ 130:30d1302dbe3b
sanitization of several clunky stuff, removed heretag (rarely of use), simplified pop(), changed shortcuts to always contain MODKEY
author | arg@10ksloc.org |
---|---|
date | Fri, 21 Jul 2006 07:37:52 +0200 |
parents | c478383db7c9 |
children | 9b9deafa0508 |
line diff
1.1 --- a/client.c Thu Jul 20 19:09:11 2006 +0200 1.2 +++ b/client.c Fri Jul 21 07:37:52 2006 +0200 1.3 @@ -476,7 +476,7 @@ 1.4 void 1.5 zoom(Arg *arg) 1.6 { 1.7 - Client *c; 1.8 + Client *c, **l; 1.9 1.10 if(!sel) 1.11 return; 1.12 @@ -486,6 +486,19 @@ 1.13 sel = c; 1.14 } 1.15 1.16 - pop(sel); 1.17 + /* pop */ 1.18 + for(l = &clients; *l && *l != sel; l = &(*l)->next); 1.19 + if(sel->prev) 1.20 + sel->prev->next = sel->next; 1.21 + if(sel->next) 1.22 + sel->next->prev = sel->prev; 1.23 + *l = sel->next; 1.24 + 1.25 + sel->prev = NULL; 1.26 + if(clients) 1.27 + clients->prev = sel; 1.28 + sel->next = clients; 1.29 + clients = sel; 1.30 + arrange(NULL); 1.31 focus(sel); 1.32 }