mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm: don't damage output on CRTC change
There's no reason why the output should be damaged here. The current buffer doesn't need to be re-painted.
This commit is contained in:
		
							parent
							
								
									ef5e2cc5e3
								
							
						
					
					
						commit
						4452ed0651
					
				
					 1 changed files with 0 additions and 6 deletions
				
			
		| 
						 | 
					@ -1099,12 +1099,6 @@ static void realloc_crtcs(struct wlr_drm_backend *drm,
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		conn->crtc = &drm->crtcs[connector_match[i]];
 | 
							conn->crtc = &drm->crtcs[connector_match[i]];
 | 
				
			||||||
 | 
					 | 
				
			||||||
		// Only realloc buffers if we have actually been modeset
 | 
					 | 
				
			||||||
		if (conn->status != DRM_MODE_CONNECTED || !conn->output.enabled) {
 | 
					 | 
				
			||||||
			continue;
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
		wlr_output_damage_whole(&conn->output);
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue