mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Merge pull request #1275 from linkmauve/fix-xdg-decoration-destroy-crash
Fix a crash on zxdg_decoration_manager_v1 destroy
This commit is contained in:
		
						commit
						1dd523c34c
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -156,6 +156,11 @@ static struct wlr_xdg_decoration_manager_v1 *
 | 
			
		|||
	return wl_resource_get_user_data(resource);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void decoration_manager_handle_destroy(
 | 
			
		||||
		struct wl_client *client, struct wl_resource *manager_resource) {
 | 
			
		||||
	wl_resource_destroy(manager_resource);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void decoration_manager_handle_get_toplevel_decoration(
 | 
			
		||||
		struct wl_client *client, struct wl_resource *manager_resource,
 | 
			
		||||
		uint32_t id, struct wl_resource *toplevel_resource) {
 | 
			
		||||
| 
						 | 
				
			
			@ -229,6 +234,7 @@ static void decoration_manager_handle_get_toplevel_decoration(
 | 
			
		|||
 | 
			
		||||
static const struct zxdg_decoration_manager_v1_interface
 | 
			
		||||
		decoration_manager_impl = {
 | 
			
		||||
	.destroy = decoration_manager_handle_destroy,
 | 
			
		||||
	.get_toplevel_decoration = decoration_manager_handle_get_toplevel_decoration,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue