退出程序时清理主循环

This commit is contained in:
zedhugh committed 2025-08-24 21:23:47 +08:00
1 parent 8f892633cc
commit 54fcb27457
1 file changed
+3
+3
View File
@@ -903,6 +903,9 @@ gboolean handle_xcb_event(GIOChannel *channel, GIOCondition condition,
}
void cleanup(void) {
g_main_loop_unref(loop);
loop = NULL;
monitor_t *m = monitors;
client_t *c = m->clients;
while (m) {