Browse Source

Workaround for a window ordering problem with VST plugins in some windows hosts.

tags/2021-05-28
jules 11 years ago
parent
commit
8977b896ab
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp

+ 3
- 2
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp View File

@@ -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


Loading…
Cancel
Save