From 2511b5c6756e10fb29153559fee95bd493451e72 Mon Sep 17 00:00:00 2001 From: "arg@mmvi" Date: Fri, 15 Sep 2006 14:21:25 +0200 Subject: added visibility check to enternotify as well --- event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'event.c') diff --git a/event.c b/event.c index c59385dc..3783eb45 100644 --- a/event.c +++ b/event.c @@ -232,7 +232,7 @@ enternotify(XEvent *e) { 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; -- cgit v1.2.3