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.
This commit is contained in:
Robbert van der Helm
2021-01-04 13:54:01 +01:00
parent 4b461e44a1
commit c554b9b4ab
+1 -1
View File
@@ -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 {