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:
parent
c111fc9905
commit
40294223d4
@ -82,6 +82,7 @@ fn handleDestroy(listener: *wl.Listener(*wlr.LayerSurfaceV1), _: *wlr.LayerSurfa
|
|||||||
layer_surface.map.link.remove();
|
layer_surface.map.link.remove();
|
||||||
layer_surface.unmap.link.remove();
|
layer_surface.unmap.link.remove();
|
||||||
layer_surface.commit.link.remove();
|
layer_surface.commit.link.remove();
|
||||||
|
layer_surface.new_popup.link.remove();
|
||||||
|
|
||||||
layer_surface.destroyPopups();
|
layer_surface.destroyPopups();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user