From bb3e1ef6447b1e4764848d245dc420afaa25b479 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 17 Jul 2009 01:38:50 +0000 Subject: [PATCH] send window-event on open, close --- panda/src/display/subprocessWindow.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/panda/src/display/subprocessWindow.cxx b/panda/src/display/subprocessWindow.cxx index 4535ccf319..ae0e2465e0 100644 --- a/panda/src/display/subprocessWindow.cxx +++ b/panda/src/display/subprocessWindow.cxx @@ -253,6 +253,11 @@ close_window() { } _is_valid = false; + + WindowProperties properties; + properties.set_open(false); + properties.set_foreground(false); + system_changed_properties(properties); } //////////////////////////////////////////////////////////////////// @@ -289,6 +294,11 @@ open_window() { return false; } + WindowProperties properties; + properties.set_open(true); + properties.set_foreground(true); + system_changed_properties(properties); + return true; }