mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Merge pull request #1558 from emersion/fix-hide-cursor-mgpu
backend/drm: fix NULL dereference when unsetting cursor
This commit is contained in:
		
						commit
						93c8b91b05
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
					@ -720,9 +720,8 @@ static bool drm_connector_set_cursor(struct wlr_output *output,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct gbm_bo *bo = plane->cursor_enabled ? plane->surf.back : NULL;
 | 
						struct gbm_bo *bo = plane->cursor_enabled ? plane->surf.back : NULL;
 | 
				
			||||||
 | 
						if (bo && drm->parent) {
 | 
				
			||||||
	if (drm->parent) {
 | 
							bo = copy_drm_surface_mgpu(&plane->mgpu_surf, bo);
 | 
				
			||||||
		bo = copy_drm_surface_mgpu(&plane->mgpu_surf, plane->surf.back);
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (bo) {
 | 
						if (bo) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue