mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Fix segfault when moving hardware cursor
This commit is contained in:
		
							parent
							
								
									314e80e8db
								
							
						
					
					
						commit
						8af779fae6
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -634,8 +634,10 @@ static bool wlr_drm_connector_move_cursor(struct wlr_output *output,
 | 
			
		|||
	struct wlr_box transformed_box;
 | 
			
		||||
	wlr_output_transform_apply_to_box(transform, &box, &transformed_box);
 | 
			
		||||
 | 
			
		||||
	transformed_box.x -= plane->cursor_hotspot_x;
 | 
			
		||||
	transformed_box.y -= plane->cursor_hotspot_y;
 | 
			
		||||
	if (plane != NULL) {
 | 
			
		||||
		transformed_box.x -= plane->cursor_hotspot_x;
 | 
			
		||||
		transformed_box.y -= plane->cursor_hotspot_y;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return drm->iface->crtc_move_cursor(drm, conn->crtc, transformed_box.x,
 | 
			
		||||
		transformed_box.y);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue