mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	handle input device destroy
This commit is contained in:
		
							parent
							
								
									df0ee7f25f
								
							
						
					
					
						commit
						5c845f14ed
					
				
					 6 changed files with 39 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -401,6 +401,11 @@ static void tablet_pad_remove(struct wlr_input_device *device, struct compositor
 | 
			
		|||
static void input_remove_notify(struct wl_listener *listener, void *data) {
 | 
			
		||||
	struct wlr_input_device *device = data;
 | 
			
		||||
	struct compositor_state *state = wl_container_of(listener, state, input_remove);
 | 
			
		||||
 | 
			
		||||
	if (state->input_remove_cb) {
 | 
			
		||||
		state->input_remove_cb(state, device);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	switch (device->type) {
 | 
			
		||||
	case WLR_INPUT_DEVICE_KEYBOARD:
 | 
			
		||||
		keyboard_remove(device, state);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue