diff options
author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-14 17:48:54 +0200 |
---|---|---|
committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-14 17:48:54 +0200 |
commit | 4ad20ffc2c23d29329bc7349985d889f2cb45612 (patch) | |
tree | 24a0f665a6e14c68784242f5af875caf9d727a7d /client.c | |
parent | 57e6e3bb80b5fc4709de3f8b716a8b8065897c7a (diff) | |
download | dwm-4ad20ffc2c23d29329bc7349985d889f2cb45612.tar.gz dwm-4ad20ffc2c23d29329bc7349985d889f2cb45612.tar.bz2 dwm-4ad20ffc2c23d29329bc7349985d889f2cb45612.zip |
fixed
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -49,10 +49,12 @@ ban(Client *c) void focus(Client *c) { - if (!issel) - return; Client *old = sel; + if (!issel) + return; + if(sel && sel->ismax) + togglemax(NULL); sel = c; if(old && old != c) drawtitle(old); @@ -68,9 +70,6 @@ focusnext(Arg *arg) if(!sel) return; - if(sel->ismax) - togglemax(NULL); - if(!(c = getnext(sel->next))) c = getnext(clients); if(c) { @@ -87,9 +86,6 @@ focusprev(Arg *arg) 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); |