drw_resize should be called on mapping as well
This commit is contained in:
		
							parent
							
								
									8215db707c
								
							
						
					
					
						commit
						d06622336b
					
				
							
								
								
									
										2
									
								
								sent.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								sent.c
									
									
									
									
									
								
							@ -431,6 +431,7 @@ void resize(int width, int height)
 | 
			
		||||
	xw.h = height;
 | 
			
		||||
	xw.uw = usablewidth * width;
 | 
			
		||||
	xw.uh = usableheight * height;
 | 
			
		||||
	drw_resize(d, width, height);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void run()
 | 
			
		||||
@ -592,7 +593,6 @@ void kpress(XEvent *e)
 | 
			
		||||
void configure(XEvent *e)
 | 
			
		||||
{
 | 
			
		||||
	resize(e->xconfigure.width, e->xconfigure.height);
 | 
			
		||||
	drw_resize(d, e->xconfigure.width, e->xconfigure.height);
 | 
			
		||||
	if (slides[idx].img)
 | 
			
		||||
		slides[idx].img->state &= ~(DRAWN | SCALED);
 | 
			
		||||
	xdraw();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user