From 43d2d97386663ebd42563eb44b7fca8e9a7584ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 18 Jun 2026 07:48:05 +0200 Subject: [PATCH] wayland: win_destroy(): unmap overlay surface before destroy Like we do with all other surfaces. --- wayland.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wayland.c b/wayland.c index f5737c1e..baddb729 100644 --- a/wayland.c +++ b/wayland.c @@ -2215,6 +2215,11 @@ wayl_win_destroy(struct wl_window *win) wl_surface_commit(win->scrollback_indicator.surface.surf); } + if (win->overlay.surface.surf != NULL) { + wl_surface_attach(win->overlay.surface.surf, NULL, 0, 0); + wl_surface_commit(win->overlay.surface.surf); + } + /* Scrollback search */ if (win->search.surface.surf != NULL) { wl_surface_attach(win->search.surface.surf, NULL, 0, 0);