mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Merge pull request #1066 from ammen99/master
layer-shell: check if the surface is mapped in layer_surface_destroy()
This commit is contained in:
		
						commit
						ac0f9acb06
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -176,7 +176,9 @@ static void layer_surface_unmap(struct wlr_layer_surface *surface) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void layer_surface_destroy(struct wlr_layer_surface *surface) {
 | 
					static void layer_surface_destroy(struct wlr_layer_surface *surface) {
 | 
				
			||||||
	layer_surface_unmap(surface);
 | 
						if (surface->configured && surface->mapped) {
 | 
				
			||||||
 | 
							layer_surface_unmap(surface);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	wlr_signal_emit_safe(&surface->events.destroy, surface);
 | 
						wlr_signal_emit_safe(&surface->events.destroy, surface);
 | 
				
			||||||
	wl_resource_set_user_data(surface->resource, NULL);
 | 
						wl_resource_set_user_data(surface->resource, NULL);
 | 
				
			||||||
	wl_list_remove(&surface->surface_destroy_listener.link);
 | 
						wl_list_remove(&surface->surface_destroy_listener.link);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue