mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 10:29:49 +01:00
Don't destroying all layer surfaces on client d/c
This commit is contained in:
parent
f133170ff0
commit
1778818a50
1 changed files with 4 additions and 1 deletions
|
@ -353,11 +353,14 @@ static const struct zwlr_layer_shell_v1_interface layer_shell_implementation = {
|
|||
};
|
||||
|
||||
static void client_handle_destroy(struct wl_resource *resource) {
|
||||
struct wl_client *client = wl_resource_get_client(resource);
|
||||
struct wlr_layer_shell *shell = layer_shell_from_resource(resource);
|
||||
struct wlr_layer_surface *surface, *tmp = NULL;
|
||||
wl_list_for_each_safe(surface, tmp, &shell->surfaces, link) {
|
||||
if (wl_resource_get_client(surface->resource) == client) {
|
||||
layer_surface_destroy(surface);
|
||||
}
|
||||
}
|
||||
wl_list_remove(wl_resource_get_link(resource));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue