Mercurial > dwm-meillo
diff client.c @ 286:ff501d94de62
fixed
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Mon, 14 Aug 2006 17:48:54 +0200 |
parents | 134804791d73 |
children | 8e6e0aa5e2ae |
line wrap: on
line diff
--- a/client.c Mon Aug 14 17:14:22 2006 +0200 +++ b/client.c Mon Aug 14 17:48:54 2006 +0200 @@ -49,10 +49,12 @@ void focus(Client *c) { + Client *old = sel; + if (!issel) return; - Client *old = sel; - + if(sel && sel->ismax) + togglemax(NULL); sel = c; if(old && old != c) drawtitle(old); @@ -68,9 +70,6 @@ if(!sel) return; - if(sel->ismax) - togglemax(NULL); - if(!(c = getnext(sel->next))) c = getnext(clients); if(c) { @@ -87,9 +86,6 @@ if(!sel) return; - if(sel->ismax) - togglemax(NULL); - if(!(c = getprev(sel->prev))) { for(c = clients; c && c->next; c = c->next); c = getprev(c);