1
0
mirror of git://git.suckless.org/dwm synced 2024-12-12 02:05:54 +00:00

added visibility check to enternotify as well

This commit is contained in:
arg@mmvi 2006-09-15 14:21:25 +02:00
parent 28aba061ec
commit 2511b5c675

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;