1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix for OSX VST host windowing order problem.

This commit is contained in:
jules 2012-04-16 13:58:29 +01:00
parent cebf34d9bb
commit abf8f59df4
2 changed files with 9 additions and 1 deletions

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);

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 },