From e0f64bb27ac5e33ee1b2a61787c08e8c7a7c9e42 Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 30 May 2014 10:39:55 +0100 Subject: [PATCH] Changed the linux VST wrapper to create its window directly inside the host's window. --- modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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