aewl

changeset 464:bd32d89ed9d5

focus() enforces visibility of a client if not NULL
author arg@mmvi
date Fri, 15 Sep 2006 10:49:05 +0200
parents e93b0ad5aeb5
children 590575d080fe
files client.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;