From c554b9b4abb1cd3acbefb275f68c3e220a57cfa5 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 4 Jan 2021 13:54:01 +0100 Subject: [PATCH] Use SW_MINIMIZE instead of SW_HIDE Before deferring closing the editor. This still gets rid of that issue in Wine's X11drv that would result in a double destroy, and it also gets rid of a delay that would still occur in Carla. --- src/wine-host/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wine-host/editor.cpp b/src/wine-host/editor.cpp index 1952d140..996e1ac7 100644 --- a/src/wine-host/editor.cpp +++ b/src/wine-host/editor.cpp @@ -261,7 +261,7 @@ Editor::~Editor() { // TODO: Check if we also have to do something special for // editor_double_embed (probalby not) // TODO: Retest XEmbed after all of these changes - ShowWindow(win32_handle.get(), SW_HIDE); + ShowWindow(win32_handle.get(), SW_MINIMIZE); } HWND Editor::get_win32_handle() const {