about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorarg@mmvi <unknown>2006-09-15 14:21:25 +0200
committerarg@mmvi <unknown>2006-09-15 14:21:25 +0200
commit2511b5c6756e10fb29153559fee95bd493451e72 (patch)
tree8e31dfb0d9a45ec180bf125e994e18d08c366471
parent28aba061ec2a6fa7923ea00b43e1335a27a73c06 (diff)
downloaddwm-2511b5c6756e10fb29153559fee95bd493451e72.tar.gz
added visibility check to enternotify as well 1.6
-rw-r--r--event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/event.c b/event.c
index c59385d..3783eb4 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;
a id='n141' href='#n141'>141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193