aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRouven Czerwinski <rouven@czerwinskis.de>2023-07-21 18:56:14 +0200
committerRouven Czerwinski <rouven@czerwinskis.de>2023-07-21 18:56:14 +0200
commit63f5851b6fdc630355510c44e875119c4755208d (patch)
tree42ec3ab1a6fc3b55c83e6feb853508acc126e4de
parentf3cf830e9aadff5b48d4ae0eca0de360fbea3ee5 (diff)
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.
-rw-r--r--types/wlr_session_lock_v1.c1
1 files changed, 1 insertions, 0 deletions
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 = {