Resize the new wrapper window for VST2 plugins

This commit is contained in:
Robbert van der Helm
2021-07-21 15:53:30 +02:00
parent 42762d1abe
commit 418cd68a81
3 changed files with 48 additions and 8 deletions
+7
View File
@@ -189,6 +189,13 @@ class Editor {
const size_t parent_window_handle,
std::optional<fu2::unique_function<void()>> timer_proc = std::nullopt);
/**
* Resize the `wrapper_window` to this new size. We need to manually call
* this whenever the plugin requests a resize, or when the host resizes the
* window (using the plugin API). Before yabridge 3.5.0 this was implicit.
*/
void resize(uint16_t width, uint16_t height) noexcept;
/**
* Handle X11 events sent to the window our editor is embedded in.
*/