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 fe85de9fa6..59391af17b 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -1161,10 +1161,8 @@ public: editorComp->addToDesktop (0, ptr); hostWindow = (HWND) ptr; #elif JUCE_LINUX - editorComp->addToDesktop (0); + editorComp->addToDesktop (0, ptr); hostWindow = (Window) ptr; - Window editorWnd = (Window) editorComp->getWindowHandle(); - XReparentWindow (display, editorWnd, hostWindow, 0, 0); #else hostWindow = attachComponentToWindowRef (editorComp, ptr, useNSView); #endif