Fixing the font unloading in case of zoom.
This commit is contained in:
		
							
								
								
									
										2
									
								
								st.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								st.c
									
									
									
									
									
								
							| @ -2406,7 +2406,7 @@ xunloadfonts(void) | |||||||
| 	 * from the frccur. | 	 * from the frccur. | ||||||
| 	 */ | 	 */ | ||||||
| 	for (i = 0, ip = frccur; i < frclen; i++, ip--) { | 	for (i = 0, ip = frccur; i < frclen; i++, ip--) { | ||||||
| 		if (ip <= 0) | 		if (ip < 0) | ||||||
| 			ip = LEN(frc) - 1; | 			ip = LEN(frc) - 1; | ||||||
| 		XftFontClose(xw.dpy, frc[ip].font); | 		XftFontClose(xw.dpy, frc[ip].font); | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user