changeset 464:bd32d89ed9d5

focus() enforces visibility of a client if not NULL
author arg@mmvi
date Fri, 15 Sep 2006 10:49:05 +0200 (2006-09-15)
parents e93b0ad5aeb5
children 590575d080fe
files client.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client.c	Thu Sep 14 11:07:44 2006 +0200
+++ b/client.c	Fri Sep 15 10:49:05 2006 +0200
@@ -84,7 +84,7 @@
 focus(Client *c) {
 	Client *old;
 
-	if(!issel)
+	if(!issel || (c && !isvisible(c)))
 		return;
 	if(!sel)
 		sel = c;