added visibility check to enternotify as well
2511b5c6
1 file(s) · +1 −1
| 232 | 232 | if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) |
|
| 233 | 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 | 236 | focus(c); |
|
| 237 | 237 | else if(ev->window == root) { |
|
| 238 | 238 | issel = True; |