summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-12-08 22:38:03 +0100
committerRobin Gareus <robin@gareus.org>2018-12-08 22:38:03 +0100
commit9004a0df7ae4d81fd6e08231e2fd896b082f3cfb (patch)
tree7b7f10d1d1c4f6aa9a855c0c8d6948a044cb8991 /libs/gtkmm2ext
parent9ccc56e162554c292b25408246e3680b8f14eea7 (diff)
Properly keep track of Window Visibility, action state
This fixes inconsistent WM::Proxy state when a window is destroyed Specifically "session-options-editor" when the session is unloaded; previously "toggle-session-options-editor" was never unset.
Diffstat (limited to 'libs/gtkmm2ext')
-rw-r--r--libs/gtkmm2ext/window_proxy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gtkmm2ext/window_proxy.cc b/libs/gtkmm2ext/window_proxy.cc
index b804c9c5b7..a9de011139 100644
--- a/libs/gtkmm2ext/window_proxy.cc
+++ b/libs/gtkmm2ext/window_proxy.cc
@@ -211,11 +211,11 @@ void
WindowProxy::drop_window ()
{
if (_window) {
+ _window->hide ();
delete_connection.disconnect ();
configure_connection.disconnect ();
map_connection.disconnect ();
unmap_connection.disconnect ();
- _window->hide ();
delete _window;
_window = 0;
delete vistracker;