summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2025-01-11 18:49:20 +0530
committerFurkan Sahin <furkan-dev@proton.me>2025-01-11 18:49:20 +0530
commit9441bed36a46867f92deb4bde483fd92ae58b181 (patch)
tree6e9c6a04a3a59909691761abaa2f8eb0b3b68b1a
parent757ccccb2c1b55e9671e2c389226d66b343d4211 (diff)
layer_shell: cleanup new_popup listener when destroying node
-rw-r--r--sway/desktop/layer_shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c
index 333c09b4..05faa465 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;