ref: 6b217ee03c5155dd751245dc3133167f3bcd7478
parent: 06821e944818e7f064aeb95cbdef5f12dd85a729
author: Simon Howard <[email protected]>
date: Thu Nov 27 13:58:58 EST 2014
textscreen: Exit immediately when all windows close. The main loop should exit when the last window closes, but the loop code was waiting for one event to be received before this took effect. This fixes #474. Thanks to Alexandre-Xavier for the report.
--- a/textscreen/txt_desktop.c
+++ b/textscreen/txt_desktop.c
@@ -290,6 +290,7 @@
if (num_windows <= 0)
{
TXT_ExitMainLoop();
+ continue;
}
TXT_DrawDesktop();