aewl

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 diff
     1.1 --- a/client.c	Mon Aug 14 17:14:22 2006 +0200
     1.2 +++ b/client.c	Mon Aug 14 17:48:54 2006 +0200
     1.3 @@ -49,10 +49,12 @@
     1.4  void
     1.5  focus(Client *c)
     1.6  {
     1.7 +	Client *old = sel;
     1.8 +
     1.9  	if (!issel)
    1.10  		return;
    1.11 -	Client *old = sel;
    1.12 -
    1.13 +	if(sel && sel->ismax)
    1.14 +		togglemax(NULL);
    1.15  	sel = c;
    1.16  	if(old && old != c)
    1.17  		drawtitle(old);
    1.18 @@ -68,9 +70,6 @@
    1.19  	if(!sel)
    1.20  		return;
    1.21  
    1.22 -	if(sel->ismax)
    1.23 -		togglemax(NULL);
    1.24 -
    1.25  	if(!(c = getnext(sel->next)))
    1.26  		c = getnext(clients);
    1.27  	if(c) {
    1.28 @@ -87,9 +86,6 @@
    1.29  	if(!sel)
    1.30  		return;
    1.31  
    1.32 -	if(sel->ismax)
    1.33 -		togglemax(NULL);
    1.34 -
    1.35  	if(!(c = getprev(sel->prev))) {
    1.36  		for(c = clients; c && c->next; c = c->next);
    1.37  		c = getprev(c);