Browse Source

focus() enforces visibility of a client if not NULL

arg@mmvi 19 years ago
parent
commit
8e37c78ce3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client.c

+ 1 - 1
client.c

@@ -84,7 +84,7 @@ void
 focus(Client *c) {
 	Client *old;
 
-	if(!issel)
+	if(!issel || (c && !isvisible(c)))
 		return;
 	if(!sel)
 		sel = c;