added visibility check to enternotify as well
This commit is contained in:
		
							
								
								
									
										2
									
								
								event.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								event.c
									
									
									
									
									
								
							| @@ -232,7 +232,7 @@ enternotify(XEvent *e) { | ||||
| 	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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user