aewl

diff client.c @ 464:bd32d89ed9d5

focus() enforces visibility of a client if not NULL
author arg@mmvi
date Fri, 15 Sep 2006 10:49:05 +0200
parents 9d23330a5268
children 590575d080fe
line diff
     1.1 --- a/client.c	Thu Sep 14 11:07:44 2006 +0200
     1.2 +++ b/client.c	Fri Sep 15 10:49:05 2006 +0200
     1.3 @@ -84,7 +84,7 @@
     1.4  focus(Client *c) {
     1.5  	Client *old;
     1.6  
     1.7 -	if(!issel)
     1.8 +	if(!issel || (c && !isvisible(c)))
     1.9  		return;
    1.10  	if(!sel)
    1.11  		sel = c;