Delay showing editor the window

This fixes Waves V13 VST3 plugins crashing when opening the editor. They
will likely still crash later on anyways because they're kinda broken.
Amazing.
This commit is contained in:
Robbert van der Helm
2022-01-09 00:41:14 +01:00
parent 41127f28c0
commit 4767b758b8
5 changed files with 30 additions and 4 deletions
+4 -4
View File
@@ -426,8 +426,6 @@ Editor::Editor(MainContext& main_context,
// the child window ourselves. This is a hack to work around the issue's
// described in `Editor`'s docstring'.
do_reparent(wine_window_, wrapper_window_.window_);
ShowWindow(win32_window_.handle_, SW_SHOWNORMAL);
}
}
@@ -468,6 +466,10 @@ void Editor::resize(uint16_t width, uint16_t height) {
}
}
void Editor::show() noexcept {
ShowWindow(win32_window_.handle_, SW_SHOWNORMAL);
}
void Editor::handle_x11_events() noexcept {
// NOTE: Ardour will unmap the window instead of closing the editor. When
// the window is unmapped `wine_window_` doesn't exist and any X11
@@ -1110,8 +1112,6 @@ void Editor::do_xembed() const {
xcb_map_window(x11_connection_.get(), wine_window_);
xcb_flush(x11_connection_.get());
ShowWindow(win32_window_.handle_, SW_SHOWNORMAL);
}
LRESULT CALLBACK window_proc(HWND handle,