mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/wayland: re-use cursor wl_buffers
We were importing cursor buffers as wl_buffers over and over again. Instead, only import these once.
This commit is contained in:
		
							parent
							
								
									198560fc1f
								
							
						
					
					
						commit
						7febdc7334
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -450,7 +450,7 @@ static bool output_set_cursor(struct wlr_output *wlr_output,
 | 
				
			||||||
		wlr_egl_unset_current(&output->backend->egl);
 | 
							wlr_egl_unset_current(&output->backend->egl);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		struct wlr_wl_buffer *buffer =
 | 
							struct wlr_wl_buffer *buffer =
 | 
				
			||||||
			create_wl_buffer(output->backend, wlr_buffer);
 | 
								get_or_create_wl_buffer(output->backend, wlr_buffer);
 | 
				
			||||||
		if (buffer == NULL) {
 | 
							if (buffer == NULL) {
 | 
				
			||||||
			return false;
 | 
								return false;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue