From eedb9e9833c2684323dc79832337112e9c6f0c4a Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 10 Jan 2020 16:35:54 +0000 Subject: [PATCH] Linux: Fixed an occasional bug causing the top-left of VST2 plug-ins to be incorrect --- .../format_types/juce_VSTPluginFormat.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index e98af93c24..bdc935fc39 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -2927,7 +2927,11 @@ public: if (auto* peer = getTopLevelComponent()->getPeer()) setScaleFactorAndDispatchMessage (peer->getPlatformScaleFactor()); + #if JUCE_LINUX + MessageManager::callAsync ([this] { componentMovedOrResized (true, true); }); + #else componentMovedOrResized (true, true); + #endif } using ComponentMovementWatcher::componentVisibilityChanged;