Fixed auto-hiding of windowed windows on OS X.

This commit is contained in:
Camilla Berglund 2014-12-02 23:13:32 +01:00
parent 1021948313
commit b81a19928d

View File

@ -971,7 +971,10 @@ static GLboolean createWindow(_GLFWwindow* window,
#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/
if (wndconfig->monitor)
{
[window->ns.object setLevel:NSMainMenuWindowLevel + 1];
[window->ns.object setHidesOnDeactivate:YES];
}
else
{
[window->ns.object center];
@ -984,7 +987,6 @@ static GLboolean createWindow(_GLFWwindow* window,
[window->ns.object setContentView:window->ns.view];
[window->ns.object setDelegate:window->ns.delegate];
[window->ns.object setAcceptsMouseMovedEvents:YES];
[window->ns.object setHidesOnDeactivate:YES];
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6)