소스 검색

focus() enforces visibility of a client if not NULL

arg@mmvi 19 년 전
부모
커밋
8e37c78ce3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;