aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2026-06-18 05:48:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-06-18 05:48:05 +0000
commit43d2d97386663ebd42563eb44b7fca8e9a7584ae (patch)
tree9639b1f31ec0c86726f0e9c52f0e3f68483425cc
parentselection: escape quotes in file names being DnD:ed on the command line (diff)
wayland: win_destroy(): unmap overlay surface before destroy
Like we do with all other surfaces.
-rw-r--r--wayland.c5
1 files changed, 5 insertions, 0 deletions
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);