mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	fix cursor loss w/ legacy drm and software cursor (tested on etnaviv)
This commit is contained in:
		
							parent
							
								
									0086dbed09
								
							
						
					
					
						commit
						e1c91884fb
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -39,7 +39,10 @@ bool legacy_crtc_set_cursor(struct wlr_drm_backend *drm,
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	if (!bo) {
 | 
			
		||||
		drmModeSetCursor(drm->fd, crtc->id, 0, 0, 0);
 | 
			
		||||
		if (drmModeSetCursor(drm->fd, crtc->id, 0, 0, 0)) {
 | 
			
		||||
			wlr_log_errno(WLR_DEBUG, "Failed to clear hardware cursor");
 | 
			
		||||
			return false;
 | 
			
		||||
		}
 | 
			
		||||
		return true;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue