yutani: exit mainloop on session-end

This should probably call a callback, but just exiting the loop
is a good start...
This commit is contained in:
K. Lange 2023-02-27 19:26:25 +09:00
parent 64770f3db3
commit 8d7710c064

View File

@ -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: