mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/x11: force rendering the whole output
This commit is contained in:
		
							parent
							
								
									4ca38b84ed
								
							
						
					
					
						commit
						78c13ead16
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -395,6 +395,12 @@ static void output_swap_buffers(struct wlr_output *wlr_output) {
 | 
			
		|||
	if (!eglSwapBuffers(x11->egl.display, output->surf)) {
 | 
			
		||||
		wlr_log(L_ERROR, "eglSwapBuffers failed: %s", egl_error());
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Damage the whole output
 | 
			
		||||
	// TODO: use the buffer age extension
 | 
			
		||||
	pixman_region32_union_rect(&wlr_output->damage, &wlr_output->damage,
 | 
			
		||||
		0, 0, wlr_output->width, wlr_output->height);
 | 
			
		||||
	wlr_output_update_needs_swap(wlr_output);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static struct wlr_output_impl output_impl = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue