From 03642d3707d520d8b1b77ffe60f858304855a769 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 21 Oct 2022 18:11:19 +0200 Subject: [PATCH] Mark window invisible after deleting it This fixes an issue when destroying VST plugin UIs rather than hiding them. Even though is hidden before destroying it, the vistracker is also destroyed in the same function call, before the event can be processed. The window state remains visible="1" --- libs/gtkmm2ext/window_proxy.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/gtkmm2ext/window_proxy.cc b/libs/gtkmm2ext/window_proxy.cc index ac7c3d6c9d..c307b19213 100644 --- a/libs/gtkmm2ext/window_proxy.cc +++ b/libs/gtkmm2ext/window_proxy.cc @@ -211,6 +211,7 @@ WindowProxy::drop_window () _window = 0; delete vistracker; vistracker = 0; + _visible = false; } }