Browse Source

added visibility check to enternotify as well

master
arg@mmvi 18 years ago
parent
commit
2511b5c675
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      event.c

+ 1
- 1
event.c View File

@ -232,7 +232,7 @@ enternotify(XEvent *e) {
if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
return; return;
if((c = getclient(ev->window)) || (c = getctitle(ev->window)))
if(((c = getclient(ev->window)) || (c = getctitle(ev->window))) && isvisible(c))
focus(c); focus(c);
else if(ev->window == root) { else if(ev->window == root) {
issel = True; issel = True;


Loading…
Cancel
Save