aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/wlr_surface.c5
1 files changed, 5 insertions, 0 deletions
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);