diff options
author | Kirill Primak <vyivel@posteo.net> | 2021-08-25 20:11:22 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-08-25 19:40:25 +0200 |
commit | 5f645598d8122b1b0c964baf4754f2e37fe71807 (patch) | |
tree | e01e6a27a18eebfc3b784f9bd66307c377157c7b | |
parent | 5dfaf5ea9ccaeddc236ca103147415b520f73d98 (diff) |
subsurface: unlock surface on destroy
-rw-r--r-- | types/wlr_surface.c | 5 |
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); |