From 8d7710c064a0f2eeac308c874a77c38bc2147050 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Mon, 27 Feb 2023 19:26:25 +0900 Subject: [PATCH] yutani: exit mainloop on session-end This should probably call a callback, but just exiting the loop is a good start... --- lib/kuroko/yutani_mainloop.krk | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/kuroko/yutani_mainloop.krk b/lib/kuroko/yutani_mainloop.krk index b9be4fde..678e8def 100644 --- a/lib/kuroko/yutani_mainloop.krk +++ b/lib/kuroko/yutani_mainloop.krk @@ -147,6 +147,7 @@ class AsyncMainloop(): if self.menu_closed_callback: self.maybe_coro(self.menu_closed_callback()) if msg.msg_type == _yutani2.Message.MSG_SESSION_END: + self.exit() return False else if msg.msg_type == _yutani2.Message.MSG_KEY_EVENT: if msg.wid in _windows: