event.c
changeset 466 ad3fa2d18542
parent 461 9d23330a5268
child 473 2d8af0d7920d
--- a/event.c	Fri Sep 15 10:54:32 2006 +0200
+++ b/event.c	Fri Sep 15 14:21:25 2006 +0200
@@ -232,7 +232,7 @@
 	if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
 		return;
 
-	if((c = getclient(ev->window)) || (c = getctitle(ev->window)))
+	if(((c = getclient(ev->window)) || (c = getctitle(ev->window))) && isvisible(c))
 		focus(c);
 	else if(ev->window == root) {
 		issel = True;