From 8977b896abb4c7cc7c681c21d85de332491d49f6 Mon Sep 17 00:00:00 2001 From: jules Date: Sun, 22 Jun 2014 19:21:25 +0100 Subject: [PATCH] Workaround for a window ordering problem with VST plugins in some windows hosts. --- modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 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 0b848748b6..16b586600f 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -1375,8 +1375,9 @@ public: { // for hosts like nuendo, need to also pop the MDI container to the // front when our comp is clicked on. - if (HWND parent = findMDIParentOf ((HWND) getWindowHandle())) - SetWindowPos (parent, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); + if (! isCurrentlyBlockedByAnotherModalComponent()) + if (HWND parent = findMDIParentOf ((HWND) getWindowHandle())) + SetWindowPos (parent, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); } #endif