From 3629a832e5b3a73ccd4e42eca79943af121866da Mon Sep 17 00:00:00 2001 From: llyyr Date: Sat, 11 Jan 2025 18:49:20 +0530 Subject: [PATCH] layer_shell: cleanup new_popup listener when destroying node --- sway/desktop/layer_shell.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index 333c09b49..05faa4656 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c @@ -256,6 +256,7 @@ static void handle_node_destroy(struct wl_listener *listener, void *data) { wl_list_remove(&layer->unmap.link); wl_list_remove(&layer->surface_commit.link); wl_list_remove(&layer->node_destroy.link); + wl_list_remove(&layer->new_popup.link); wl_list_remove(&layer->output_destroy.link); layer->layer_surface->data = NULL;