From 848082095ff28724911b4604bfeca6c74bdb20f1 Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 1 Sep 2025 20:00:24 +0100 Subject: [PATCH] VST3 Client: Additionally call setIComponentHandler when the handler is set on the edit controller --- .../juce_audio_plugin_client_VST3.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/juce_audio_plugin_client/juce_audio_plugin_client_VST3.cpp b/modules/juce_audio_plugin_client/juce_audio_plugin_client_VST3.cpp index efb9c1589a..049baf760f 100644 --- a/modules/juce_audio_plugin_client/juce_audio_plugin_client_VST3.cpp +++ b/modules/juce_audio_plugin_client/juce_audio_plugin_client_VST3.cpp @@ -1421,6 +1421,22 @@ public: return kResultFalse; } + tresult PLUGIN_API setComponentHandler (Vst::IComponentHandler* handler) override + { + const auto result = EditController::setComponentHandler (handler); + + if (result != kResultTrue) + return result; + + if (audioProcessor != nullptr) + { + if (auto* extensions = audioProcessor->get()->getVST3ClientExtensions()) + extensions->setIComponentHandler (componentHandler); + } + + return kResultTrue; + } + //============================================================================== IPlugView* PLUGIN_API createView (const char* name) override {