mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm: remove unused if in drm_connector_move_cursor
We return early if we don't have a plane.
This commit is contained in:
		
							parent
							
								
									0e927533b0
								
							
						
					
					
						commit
						1336ad2a23
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
					@ -1008,10 +1008,8 @@ static bool drm_connector_move_cursor(struct wlr_output *output,
 | 
				
			||||||
		wlr_output_transform_invert(output->transform);
 | 
							wlr_output_transform_invert(output->transform);
 | 
				
			||||||
	wlr_box_transform(&box, &box, transform, width, height);
 | 
						wlr_box_transform(&box, &box, transform, width, height);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (plane != NULL) {
 | 
					 | 
				
			||||||
	box.x -= plane->cursor_hotspot_x;
 | 
						box.x -= plane->cursor_hotspot_x;
 | 
				
			||||||
	box.y -= plane->cursor_hotspot_y;
 | 
						box.y -= plane->cursor_hotspot_y;
 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	conn->cursor_x = box.x;
 | 
						conn->cursor_x = box.x;
 | 
				
			||||||
	conn->cursor_y = box.y;
 | 
						conn->cursor_y = box.y;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue