From 284bc706c9031a84e9e67091a37d30ea3507d7e9 Mon Sep 17 00:00:00 2001 From: hogliux Date: Fri, 25 Nov 2016 14:32:11 +0000 Subject: [PATCH] Added a workaround for WaveLab invisible editor bug --- .../VST3/juce_VST3_Wrapper.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp index 2f4faec9a1..d74a232adb 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -705,7 +705,7 @@ private: #endif //============================================================================== - class JuceVST3Editor : public Vst::EditorView + class JuceVST3Editor : public Vst::EditorView, private Timer { public: JuceVST3Editor (JuceVST3EditController& ec, AudioProcessor& p) @@ -757,6 +757,10 @@ private: systemWindow = parent; attachedToParent(); + // Life's too short to faff around with wave lab + if (getHostType().isWavelab()) + startTimer (200); + return kResultTrue; } @@ -843,6 +847,15 @@ private: } private: + void timerCallback() override + { + stopTimer (); + + ViewRect rect; + getSize (&rect); + onSize (&rect); + } + //============================================================================== class ContentWrapperComponent : public Component {