mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-26 19:39:49 +01:00
Destroy layer surfaces when client is destroyed
This commit is contained in:
parent
b06105b564
commit
4a8c0c0784
1 changed files with 4 additions and 1 deletions
|
@ -235,7 +235,10 @@ static struct zwlr_layer_shell_v1_interface layer_shell_impl = {
|
|||
static void wlr_layer_client_destroy(struct wl_resource *resource) {
|
||||
struct wlr_layer_client *client = layer_client_from_resource(resource);
|
||||
|
||||
// TODO: Destroy surfaces
|
||||
struct wlr_layer_surface *surface, *tmp = NULL;
|
||||
wl_list_for_each_safe(surface, tmp, &client->surfaces, link) {
|
||||
layer_surface_destroy(surface);
|
||||
}
|
||||
|
||||
wl_list_remove(&client->link);
|
||||
free(client);
|
||||
|
|
Loading…
Reference in a new issue