added kludge to fix some input focus misbehavior in gedit and anjuta, thanks Martti Kühne
This commit is contained in:
		
							
								
								
									
										3
									
								
								dwm.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								dwm.c
									
									
									
									
									
								
							@@ -884,7 +884,8 @@ focusmon(const Arg *arg) {
 | 
				
			|||||||
		return;
 | 
							return;
 | 
				
			||||||
	if((m = dirtomon(arg->i)) == selmon)
 | 
						if((m = dirtomon(arg->i)) == selmon)
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	unfocus(selmon->sel, True);
 | 
						unfocus(selmon->sel, False); /* s/True/False/ fixes input focus issues
 | 
				
			||||||
 | 
										in gedit and anjuta */
 | 
				
			||||||
	selmon = m;
 | 
						selmon = m;
 | 
				
			||||||
	focus(NULL);
 | 
						focus(NULL);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user