Explorar o código

focus() enforces visibility of a client if not NULL

arg@mmvi %!s(int64=19) %!d(string=hai) anos
pai
achega
8e37c78ce3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;