From fe4932674291fcf2aa5ea0a72d95a27fdb224069 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Tue, 10 Jun 2025 07:01:19 +0800 Subject: [PATCH] fix: crash disabling monitor with locked surface --- src/maomao.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/maomao.c b/src/maomao.c index 1984af8..78e27b4 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -2938,6 +2938,8 @@ void cleanupmon(struct wl_listener *listener, void *data) { wl_list_remove(&m->frame.link); wl_list_remove(&m->link); wl_list_remove(&m->request_state.link); + if (m->lock_surface) + destroylocksurface(&m->destroy_lock_surface, NULL); m->wlr_output->data = NULL; wlr_output_layout_remove(output_layout, m->wlr_output); wlr_scene_output_destroy(m->scene_output);