wayland: destroy popup surfaces at correct time

This commit is contained in:
IoIxD 2026-09-11 13:10:40 -07:00
commit 175827fd9b

View file

@ -584,14 +584,13 @@ static void setup_popup(MwLL r, int x, int y, MwLL parent) {
/* Popup destroy function */
static void destroy_popup(MwLL r) {
MwLLWaylandBackbufferDestroy(&r->wayland);
MwLLWaylandFramebufferDestroy(&r->wayland);
xdg_surface_destroy(r->wayland.popup->xdg_surface);
xdg_popup_destroy(r->wayland.popup->xdg_popup);
xdg_surface_destroy(r->wayland.popup->xdg_surface);
xdg_positioner_destroy(r->wayland.popup->xdg_positioner);
wl_surface_destroy(r->wayland.framebuffer.surface);