xwayland: Propagate damage x1/y1 coordinates in xwl_present_flip
This couldn't have worked correctly for non-0 x1/y1. Noticed by inspection. Reviewed-by: Simon Ser <contact@emersion.fr> (cherry picked from commits9141196d31) (cherry picked fixup from commit85a6fd11c7)
This commit is contained in:
		
							parent
							
								
									3b51978b9c
								
							
						
					
					
						commit
						10cabe0b97
					
				| 
						 | 
				
			
			@ -497,7 +497,9 @@ xwl_present_flip(WindowPtr present_window,
 | 
			
		|||
    /* Realign timer */
 | 
			
		||||
    xwl_present_reset_timer(xwl_present_window);
 | 
			
		||||
 | 
			
		||||
    wl_surface_damage(xwl_window->surface, 0, 0,
 | 
			
		||||
    wl_surface_damage(xwl_window->surface,
 | 
			
		||||
                      damage_box->x1 - present_window->drawable.x,
 | 
			
		||||
                      damage_box->y1 - present_window->drawable.y,
 | 
			
		||||
                      damage_box->x2 - damage_box->x1,
 | 
			
		||||
                      damage_box->y2 - damage_box->y1);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue