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 f729f09523..47e4286969 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -1344,7 +1344,11 @@ public: #if ! JUCE_LINUX // setSize() on linux causes renoise and energyxt to fail. setSize (cw, ch); #else - XResizeWindow (display, (Window) getWindowHandle(), (unsigned int) cw, (unsigned int) ch); + const double scale = Desktop::getInstance().getDisplays().getDisplayContaining (getScreenBounds().getCentre()).scale; + Rectangle childBounds (child->getWidth(), child->getHeight()); + childBounds *= scale; + + XResizeWindow (display, (Window) getWindowHandle(), childBounds.getWidth(), childBounds.getHeight()); #endif #if JUCE_MAC