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; }