session-lock: add missing lock_surface_destroy

Add the missing lock_surface_destroy which was removed in dc7686c114
("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.
This commit is contained in:
Rouven Czerwinski 2023-07-21 18:56:14 +02:00
parent f3cf830e9a
commit 63f5851b6f

View file

@ -189,6 +189,7 @@ static void lock_surface_role_destroy(struct wlr_surface *surface) {
if (lock_surface == NULL) { if (lock_surface == NULL) {
return; return;
} }
lock_surface_destroy(lock_surface);
} }
static const struct wlr_surface_role lock_surface_role = { static const struct wlr_surface_role lock_surface_role = {