From 368d2542a1ec3ac4afe32bc88783f1beef1d1aef Mon Sep 17 00:00:00 2001 From: hogliux Date: Tue, 8 Aug 2017 09:26:30 +0100 Subject: [PATCH] VST2: Fixed an issue with resizing plug-ins in Ableton Live --- modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp index ecab10a8f3..ebbf421457 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -1322,7 +1322,9 @@ public: if (auto host = wrapper.hostCallback) { - if (host (wrapper.getVstEffectInterface(), hostOpcodeCanHostDo, 0, 0, const_cast ("sizeWindow"), 0) == (pointer_sized_int) 1) + auto status = host (wrapper.getVstEffectInterface(), hostOpcodeCanHostDo, 0, 0, const_cast ("sizeWindow"), 0); + + if (status == (pointer_sized_int) 1 || getHostType().isAbletonLive()) { isInSizeWindow = true; sizeWasSuccessful = (host (wrapper.getVstEffectInterface(), hostOpcodeWindowSize, newWidth, newHeight, 0, 0) != 0);