Properly keep track of Window Visibility, action state
authorRobin Gareus <robin@gareus.org>
Sat, 8 Dec 2018 21:38:03 +0000 (22:38 +0100)
committerRobin Gareus <robin@gareus.org>
Sat, 8 Dec 2018 21:38:03 +0000 (22:38 +0100)
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.

libs/gtkmm2ext/window_proxy.cc

index b804c9c5b72e0416d10fc235d10a045571fff4db..a9de011139433776589abcaf4fe1aefbbe2ab121 100644 (file)
@@ -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;