Browse Source

Fix for OSX VST host windowing order problem.

tags/2021-05-28
jules 13 years ago
parent
commit
abf8f59df4
2 changed files with 9 additions and 1 deletions
  1. +1
    -1
      extras/audio plugin host/Source/HostStartup.cpp
  2. +8
    -0
      modules/juce_gui_extra/native/juce_mac_CarbonViewWrapperComponent.h

+ 1
- 1
extras/audio plugin host/Source/HostStartup.cpp View File

@@ -73,7 +73,7 @@ public:
if (commandLine.isNotEmpty() && mainWindow->getGraphEditor() != 0)
{
#if JUCE_MAC
if (! commandLine.trimStart().startsWith ("-psn"))
if (! commandLine.trimStart().startsWith ("-"))
#endif
mainWindow->getGraphEditor()->graph.loadFrom (File::getCurrentWorkingDirectory()
.getChildFile (commandLine), true);


+ 8
- 0
modules/juce_gui_extra/native/juce_mac_CarbonViewWrapperComponent.h View File

@@ -96,6 +96,14 @@ public:
embeddedView = attachView (wrapperWindow, HIViewGetRoot (wrapperWindow));
// Check for the plugin creating its own floating window, and if there is one,
// we need to reparent it to make it visible..
NSWindow* floatingChildWindow = [[carbonWindow childWindows] objectAtIndex: 0];
if (floatingChildWindow != nil)
[getOwnerWindow() addChildWindow: c
ordered: NSWindowAbove];
EventTypeSpec windowEventTypes[] =
{
{ kEventClassWindow, kEventWindowGetClickActivation },


Loading…
Cancel
Save