mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-10-29 05:40:12 -04:00 
			
		
		
		
	Add wlr_signal_emit_safe
This commit is contained in:
		
							parent
							
								
									3497e53516
								
							
						
					
					
						commit
						5e58d46cc1
					
				
					 43 changed files with 265 additions and 182 deletions
				
			
		|  | @ -11,6 +11,7 @@ | |||
| #include <wlr/interfaces/wlr_output.h> | ||||
| #include <wlr/interfaces/wlr_input_device.h> | ||||
| #include <wlr/util/log.h> | ||||
| #include <wlr/util/signal.h> | ||||
| #include "backend/wayland.h" | ||||
| #include "xdg-shell-unstable-v6-client-protocol.h" | ||||
| 
 | ||||
|  | @ -80,7 +81,7 @@ static void wlr_wl_backend_destroy(struct wlr_backend *wlr_backend) { | |||
| 		wlr_input_device_destroy(input_device); | ||||
| 	} | ||||
| 
 | ||||
| 	wl_signal_emit(&wlr_backend->events.destroy, wlr_backend); | ||||
| 	wlr_signal_emit_safe(&wlr_backend->events.destroy, wlr_backend); | ||||
| 
 | ||||
| 	wl_list_remove(&backend->local_display_destroy.link); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 emersion
						emersion