dwm-meillo

changeset 401:1eb2eb405653

reducing focus calls (sanders patch)
author Anselm R. Garbe <arg@10kloc.org>
date Mon, 04 Sep 2006 10:10:08 +0200
parents 052657ff2e7b
children c7d5ff57998d
files view.c
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line diff
     1.1 --- a/view.c	Mon Sep 04 08:55:49 2006 +0200
     1.2 +++ b/view.c	Mon Sep 04 10:10:08 2006 +0200
     1.3 @@ -68,9 +68,8 @@
     1.4  		else
     1.5  			ban(c);
     1.6  	}
     1.7 -	if(!(fc = sel) || !isvisible(fc))
     1.8 -		fc = getnext(clients);
     1.9 -	focus(fc);
    1.10 +	if(!sel || !isvisible(sel))
    1.11 +		focus(getnext(clients));
    1.12  	restack();
    1.13  }
    1.14  
    1.15 @@ -131,9 +130,8 @@
    1.16  		else
    1.17  			ban(c);
    1.18  	}
    1.19 -	if(!(fc = sel) || !isvisible(fc))
    1.20 -		fc = getnext(clients);
    1.21 -	focus(fc);
    1.22 +	if(!sel || !isvisible(sel))
    1.23 +		focus(getnext(clients));
    1.24  	restack();
    1.25  }
    1.26