mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 12:10:09 +02:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user