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:
parent
cebf34d9bb
commit
abf8f59df4
2 changed files with 9 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue