From 2bdd2c69b35ce6a4127be7f1e858b1eb3d452dbc Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 8 May 2003 22:56:17 +0000 Subject: [PATCH] write notify message when window is closed --- panda/src/display/graphicsWindow.cxx | 2 ++ panda/src/glxdisplay/glxGraphicsWindow.cxx | 1 + panda/src/windisplay/winGraphicsWindow.cxx | 2 ++ 3 files changed, 5 insertions(+) diff --git a/panda/src/display/graphicsWindow.cxx b/panda/src/display/graphicsWindow.cxx index 822c7c3bd2..656f274f20 100644 --- a/panda/src/display/graphicsWindow.cxx +++ b/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"; } //////////////////////////////////////////////////////////////////// diff --git a/panda/src/glxdisplay/glxGraphicsWindow.cxx b/panda/src/glxdisplay/glxGraphicsWindow.cxx index 4089652afe..8682a858b7 100644 --- a/panda/src/glxdisplay/glxGraphicsWindow.cxx +++ b/panda/src/glxdisplay/glxGraphicsWindow.cxx @@ -357,6 +357,7 @@ close_window() { // application, so the server hears the close request. XFlush(_display); } + GraphicsWindow::close_window(); } //////////////////////////////////////////////////////////////////// diff --git a/panda/src/windisplay/winGraphicsWindow.cxx b/panda/src/windisplay/winGraphicsWindow.cxx index bfd5c085ac..7e8c8a3aeb 100644 --- a/panda/src/windisplay/winGraphicsWindow.cxx +++ b/panda/src/windisplay/winGraphicsWindow.cxx @@ -184,6 +184,8 @@ close_window() { // revert to default display mode. ChangeDisplaySettings(NULL, 0x0); } + + GraphicsWindow::close_window(); } ////////////////////////////////////////////////////////////////////