summaryrefslogtreecommitdiff
path: root/plugingui/plugingui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/plugingui.cc')
-rw-r--r--plugingui/plugingui.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugingui/plugingui.cc b/plugingui/plugingui.cc
index da18f71..0a68d72 100644
--- a/plugingui/plugingui.cc
+++ b/plugingui/plugingui.cc
@@ -203,6 +203,13 @@ void PluginGUI::thread_main()
window->eventHandler()->processEvents();
handleMessages();
+
+#ifdef STANDALONE
+ if(closing) {
+ if(windowClosedHandler) windowClosedHandler(windowClosedPtr);
+ break;
+ }
+#endif
}
deinit();