mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	drm: only disable atomic modesetting when WLR_DRM_NO_ATOMIC == 1
Don't allow any value of the env var to disable atomic mode setting.
This commit is contained in:
		
							parent
							
								
									2964248f42
								
							
						
					
					
						commit
						1637053ef8
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -32,7 +32,8 @@ bool check_drm_features(struct wlr_drm_backend *drm) {
 | 
			
		|||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (getenv("WLR_DRM_NO_ATOMIC")) {
 | 
			
		||||
	const char *no_atomic = getenv("WLR_DRM_NO_ATOMIC");
 | 
			
		||||
	if (no_atomic && strcmp(no_atomic, "1") == 0) {
 | 
			
		||||
		wlr_log(L_DEBUG, "WLR_DRM_NO_ATOMIC set, forcing legacy DRM interface");
 | 
			
		||||
		drm->iface = &legacy_iface;
 | 
			
		||||
	} else if (drmSetClientCap(drm->fd, DRM_CLIENT_CAP_ATOMIC, 1)) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue