|  |  | @ -169,6 +169,7 @@ static struct wl_keyboard_listener keyboard_listener = { | 
			
		
	
		
		
			
				
					
					|  |  |  | }; |  |  |  | }; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | static void input_device_destroy(struct wlr_input_device_state *state) { |  |  |  | static void input_device_destroy(struct wlr_input_device_state *state) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	wl_signal_emit(&state->backend->backend->events.input_remove, state->wlr_device); | 
			
		
	
		
		
			
				
					
					|  |  |  | 	if (state->resource) |  |  |  | 	if (state->resource) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		wl_proxy_destroy(state->resource); |  |  |  | 		wl_proxy_destroy(state->resource); | 
			
		
	
		
		
			
				
					
					|  |  |  | 	free(state); |  |  |  | 	free(state); | 
			
		
	
	
		
		
			
				
					|  |  | @ -206,7 +207,7 @@ static struct wlr_input_device *allocate_device(struct wlr_backend_state *state, | 
			
		
	
		
		
			
				
					
					|  |  |  | 		free(devstate); |  |  |  | 		free(devstate); | 
			
		
	
		
		
			
				
					
					|  |  |  | 		return NULL; |  |  |  | 		return NULL; | 
			
		
	
		
		
			
				
					
					|  |  |  | 	} |  |  |  | 	} | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 	devstate->wlr_device = wlr_device; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 	list_add(state->devices, wlr_device); |  |  |  | 	list_add(state->devices, wlr_device); | 
			
		
	
		
		
			
				
					
					|  |  |  | 	return wlr_device; |  |  |  | 	return wlr_device; | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |