layer_shell: cleanup new_popup listener when destroying node

(cherry picked from commit 3629a832e5)
This commit is contained in:
llyyr 2025-01-11 18:49:20 +05:30 committed by Simon Ser
parent d587da5ff8
commit 20b5362256

View file

@ -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->unmap.link);
wl_list_remove(&layer->surface_commit.link); wl_list_remove(&layer->surface_commit.link);
wl_list_remove(&layer->node_destroy.link); wl_list_remove(&layer->node_destroy.link);
wl_list_remove(&layer->new_popup.link);
wl_list_remove(&layer->output_destroy.link); wl_list_remove(&layer->output_destroy.link);
layer->layer_surface->data = NULL; layer->layer_surface->data = NULL;