LayerSurface: drop new_popup link in handleDestroy()

This fixes an assertion in wlroots:

    river: types/wlr_layer_shell_v1.c:55: layer_surface_destroy: Assertion `wl_list_empty(&surface->events.new_popup.listener_list)' failed.
This commit is contained in:
Daniel Eklöf 2025-06-11 07:15:58 +02:00 committed by Isaac Freund
parent c111fc9905
commit 40294223d4
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -82,6 +82,7 @@ fn handleDestroy(listener: *wl.Listener(*wlr.LayerSurfaceV1), _: *wlr.LayerSurfa
layer_surface.map.link.remove();
layer_surface.unmap.link.remove();
layer_surface.commit.link.remove();
layer_surface.new_popup.link.remove();
layer_surface.destroyPopups();