Mercurial > dwm-meillo
comparison event.c @ 466:ad3fa2d18542 1.6
added visibility check to enternotify as well
author | arg@mmvi |
---|---|
date | Fri, 15 Sep 2006 14:21:25 +0200 |
parents | 9d23330a5268 |
children | 2d8af0d7920d |
comparison
equal
deleted
inserted
replaced
465:590575d080fe | 466:ad3fa2d18542 |
---|---|
230 XCrossingEvent *ev = &e->xcrossing; | 230 XCrossingEvent *ev = &e->xcrossing; |
231 | 231 |
232 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) | 232 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) |
233 return; | 233 return; |
234 | 234 |
235 if((c = getclient(ev->window)) || (c = getctitle(ev->window))) | 235 if(((c = getclient(ev->window)) || (c = getctitle(ev->window))) && isvisible(c)) |
236 focus(c); | 236 focus(c); |
237 else if(ev->window == root) { | 237 else if(ev->window == root) { |
238 issel = True; | 238 issel = True; |
239 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); | 239 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
240 drawall(); | 240 drawall(); |