From 63f5851b6fdc630355510c44e875119c4755208d Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Fri, 21 Jul 2023 18:56:14 +0200 Subject: session-lock: add missing lock_surface_destroy Add the missing lock_surface_destroy which was removed in dc7686c114f8 ("session-lock: don't remove inert role resource"). Otherwise we never remove the surface from our internal state, leading to us killing the locking daemon with a protocol error that is totally our fault. --- types/wlr_session_lock_v1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/types/wlr_session_lock_v1.c b/types/wlr_session_lock_v1.c index 10e888fe..4b8a69ad 100644 --- a/types/wlr_session_lock_v1.c +++ b/types/wlr_session_lock_v1.c @@ -189,6 +189,7 @@ static void lock_surface_role_destroy(struct wlr_surface *surface) { if (lock_surface == NULL) { return; } + lock_surface_destroy(lock_surface); } static const struct wlr_surface_role lock_surface_role = { -- cgit v1.2.3