mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	wlr_pointer_gestures_v1: emit destroy signal in destroy function
This commit is contained in:
		
							parent
							
								
									dead0ebcc8
								
							
						
					
					
						commit
						293b0aa502
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -396,6 +396,7 @@ static void pointer_gestures_v1_bind(struct wl_client *wl_client, void *data,
 | 
				
			||||||
static void handle_display_destroy(struct wl_listener *listener, void *data) {
 | 
					static void handle_display_destroy(struct wl_listener *listener, void *data) {
 | 
				
			||||||
	struct wlr_pointer_gestures_v1 *gestures =
 | 
						struct wlr_pointer_gestures_v1 *gestures =
 | 
				
			||||||
		wl_container_of(listener, gestures, display_destroy);
 | 
							wl_container_of(listener, gestures, display_destroy);
 | 
				
			||||||
 | 
						wl_signal_emit_mutable(&gestures->events.destroy, NULL);
 | 
				
			||||||
	wl_list_remove(&gestures->display_destroy.link);
 | 
						wl_list_remove(&gestures->display_destroy.link);
 | 
				
			||||||
	wl_global_destroy(gestures->global);
 | 
						wl_global_destroy(gestures->global);
 | 
				
			||||||
	free(gestures);
 | 
						free(gestures);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue