退出程序时清理主循环

This commit is contained in:
2025-08-24 21:23:24 +08:00
parent 8f892633cc
commit 54fcb27457

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) {