Browse Source

write notify message when window is closed

David Rose 22 years ago
parent
commit
2bdd2c69b3

+ 2 - 0
panda/src/display/graphicsWindow.cxx

@@ -833,6 +833,8 @@ set_properties_now(WindowProperties &properties) {
 ////////////////////////////////////////////////////////////////////
 void GraphicsWindow::
 close_window() {
+  display_cat.info()
+    << "Closing " << get_type() << "\n";
 }
 
 ////////////////////////////////////////////////////////////////////

+ 1 - 0
panda/src/glxdisplay/glxGraphicsWindow.cxx

@@ -357,6 +357,7 @@ close_window() {
     // application, so the server hears the close request.
     XFlush(_display);
   }
+  GraphicsWindow::close_window();
 }
 
 ////////////////////////////////////////////////////////////////////

+ 2 - 0
panda/src/windisplay/winGraphicsWindow.cxx

@@ -184,6 +184,8 @@ close_window() {
     // revert to default display mode.
     ChangeDisplaySettings(NULL, 0x0);
   }
+
+  GraphicsWindow::close_window();
 }
 
 ////////////////////////////////////////////////////////////////////