From 4ad20ffc2c23d29329bc7349985d889f2cb45612 Mon Sep 17 00:00:00 2001 From: "Anselm R.Garbe" Date: Mon, 14 Aug 2006 17:48:54 +0200 Subject: fixed --- client.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 6a231b9..14edf7c 100644 --- a/client.c +++ b/client.c @@ -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); -- cgit v1.2.3-13-gbd6f