Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
added visibility check to enternotify as well
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
c59385d
..
3783eb4
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-232,7
+232,7
@@
enternotify(XEvent *e) {
if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
return;
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;
focus(c);
else if(ev->window == root) {
issel = True;