mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	project wide: clean up event listeners on shutdown
This ensures all event listeners are removed before the emitting wlroots object is being destroyed. This will be enforced with asserts in wlroots 0.19 but there is no reason to not do it right now either. This change in wlroots 0.19 is implemented via commit 8f56f7ca43257cc05c7c4eb57a0f541e05cf9a79 "Assert (almost all) signals have no attached listeners on destroy"
This commit is contained in:
		
							parent
							
								
									4750214d42
								
							
						
					
					
						commit
						9e6aaa689a
					
				
					 13 changed files with 77 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -1012,3 +1012,10 @@ xdg_shell_init(struct server *server)
 | 
			
		|||
		&server->xdg_activation_new_token);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
xdg_shell_finish(struct server *server)
 | 
			
		||||
{
 | 
			
		||||
	wl_list_remove(&server->new_xdg_toplevel.link);
 | 
			
		||||
	wl_list_remove(&server->xdg_activation_request.link);
 | 
			
		||||
	wl_list_remove(&server->xdg_activation_new_token.link);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue