unfocus on slow sloppy monitor focus
This commit is contained in:
		
							
								
								
									
										1
									
								
								dwm.c
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								dwm.c
									
									
									
									
									
								
							@@ -1212,6 +1212,7 @@ motionnotify(XEvent *e) {
 | 
				
			|||||||
	if(ev->window != root)
 | 
						if(ev->window != root)
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	if((m = recttomon(ev->x_root, ev->y_root, 1, 1)) != mon && mon) {
 | 
						if((m = recttomon(ev->x_root, ev->y_root, 1, 1)) != mon && mon) {
 | 
				
			||||||
 | 
							unfocus(selmon->sel, True);
 | 
				
			||||||
		selmon = m;
 | 
							selmon = m;
 | 
				
			||||||
		focus(NULL);
 | 
							focus(NULL);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user