Move the editor handling back to Vst2Bridge

Since we can have multiple editors in Vst3Bridge.
This commit is contained in:
Robbert van der Helm
2020-12-19 19:56:49 +01:00
parent b422f6fd42
commit a724b378fe
8 changed files with 62 additions and 38 deletions
+11
View File
@@ -29,6 +29,7 @@
#include "../../common/communication/vst2.h"
#include "../../common/configuration.h"
#include "../editor.h"
#include "../utils.h"
#include "common.h"
@@ -66,6 +67,9 @@ class Vst2Bridge : public HostBridge {
*/
void run() override;
void handle_x11_events() override;
void handle_win32_events() override;
/**
* Forward the host callback made by the plugin to the host and return the
* results.
@@ -144,6 +148,13 @@ class Vst2Bridge : public HostBridge {
*/
Vst2Sockets<Win32Thread> sockets;
/**
* The plugin editor window. Allows embedding the plugin's editor into a
* Wine window, and embedding that Wine window into a window provided by the
* host. Should be empty when the editor is not open.
*/
std::optional<Editor> editor;
/**
* The MIDI events that have been received **and processed** since the last
* call to `processReplacing()`. 99% of plugins make a copy of the MIDI