From 5f645598d8122b1b0c964baf4754f2e37fe71807 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Wed, 25 Aug 2021 20:11:22 +0300 Subject: [PATCH] subsurface: unlock surface on destroy --- types/wlr_surface.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/wlr_surface.c b/types/wlr_surface.c index 4446252b..66d52ab2 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -683,6 +683,11 @@ static void subsurface_destroy(struct wlr_subsurface *subsurface) { return; } + if (subsurface->has_cache) { + wlr_surface_unlock_cached(subsurface->surface, + subsurface->cached_seq); + } + subsurface_unmap(subsurface); wlr_signal_emit_safe(&subsurface->events.destroy, subsurface);