Browse Source

close down when x11 splash is closed

David Rose 16 years ago
parent
commit
0a6881430f
1 changed files with 4 additions and 1 deletions
  1. 4 1
      direct/src/plugin/p3dX11SplashWindow.cxx

+ 4 - 1
direct/src/plugin/p3dX11SplashWindow.cxx

@@ -439,7 +439,10 @@ rt_thread_run() {
   while (true) {
   while (true) {
     TiXmlDocument *doc = read_xml(_pipe_read, nout);
     TiXmlDocument *doc = read_xml(_pipe_read, nout);
     if (doc == NULL) {
     if (doc == NULL) {
-      // Some error on reading.
+      // Some error on reading.  The splash window must have gone
+      // away, e.g. because the user explicitly closed it; tell the
+      // instance to exit.
+      _inst->request_stop_sub_thread();
       return;
       return;
     }
     }