Add an optional double editor embedding mode #27

This sounds like it would the simplest way to work around the issue of
E27 calculating its own coordinates based on the parent window's
coordinates. I have not noticed any weird issues with having this
enabled all the time, but less moving parts is always better so it's
still behind an option.
This commit is contained in:
Robbert van der Helm
2020-07-23 16:53:50 +02:00
parent 967856fc1b
commit b1dd301a98
3 changed files with 74 additions and 22 deletions
+3 -3
View File
@@ -373,11 +373,11 @@ intptr_t Vst2Bridge::dispatch_wrapper(AEffect* plugin,
// should get a unique window class
const std::string window_class =
"yabridge plugin " + socket_endpoint.path();
Editor& editor_instance =
editor.emplace<Editor>(window_class, plugin, x11_handle);
Editor& editor_instance = editor.emplace<Editor>(
config, window_class, x11_handle, plugin);
return plugin->dispatcher(plugin, opcode, index, value,
editor_instance.win32_handle.get(),
editor_instance.get_win32_handle(),
option);
} break;
case effEditClose: {