mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	output: remove noop backend check in wlr_output_cursor_set_image
The noop backend doesn't exist anymore.
This commit is contained in:
		
							parent
							
								
									71f8a48d38
								
							
						
					
					
						commit
						e3e2a34cd8
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
					@ -377,9 +377,7 @@ bool wlr_output_cursor_set_image(struct wlr_output_cursor *cursor,
 | 
				
			||||||
		int32_t hotspot_x, int32_t hotspot_y) {
 | 
							int32_t hotspot_x, int32_t hotspot_y) {
 | 
				
			||||||
	struct wlr_renderer *renderer = cursor->output->renderer;
 | 
						struct wlr_renderer *renderer = cursor->output->renderer;
 | 
				
			||||||
	if (!renderer) {
 | 
						if (!renderer) {
 | 
				
			||||||
		// if the backend has no renderer, we can't draw a cursor, but this is
 | 
							return false;
 | 
				
			||||||
		// actually okay, for ex. with the noop backend
 | 
					 | 
				
			||||||
		return true;
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	output_cursor_reset(cursor);
 | 
						output_cursor_reset(cursor);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue