From 9004a0df7ae4d81fd6e08231e2fd896b082f3cfb Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 8 Dec 2018 22:38:03 +0100 Subject: 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. --- libs/gtkmm2ext/window_proxy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/gtkmm2ext') 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; -- cgit v1.2.3