1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 10:48:51 -05:00

Moved to Cocoa for transformation and activation.

This commit is contained in:
Camilla Berglund 2013-11-07 18:03:39 +01:00
parent e7c7ebf665
commit ec5cb9c6f7
2 changed files with 5 additions and 6 deletions

View File

@ -40,6 +40,7 @@ guide in the GLFW documentation.
unfocused windows unfocused windows
- [Cocoa] Added dependency on CoreVideo framework for refresh rate retrieval - [Cocoa] Added dependency on CoreVideo framework for refresh rate retrieval
- [Cocoa] Enabled Lion full screen for resizable windowed mode windows - [Cocoa] Enabled Lion full screen for resizable windowed mode windows
- [Cocoa] Moved to Cocoa API for application transformation and activation
- [Cocoa] Bugfix: The `GLFW_KEY_GRAVE_ACCENT` key was reported as - [Cocoa] Bugfix: The `GLFW_KEY_GRAVE_ACCENT` key was reported as
`GLFW_KEY_WORLD_1` and vice versa `GLFW_KEY_WORLD_1` and vice versa
- [Cocoa] Bugfix: The `GLFW_KEY_F13` key was reported as - [Cocoa] Bugfix: The `GLFW_KEY_F13` key was reported as

View File

@ -827,13 +827,11 @@ static GLboolean initializeAppKit(void)
// Implicitly create shared NSApplication instance // Implicitly create shared NSApplication instance
[GLFWApplication sharedApplication]; [GLFWApplication sharedApplication];
// If we get here, the application is unbundled // In case we are unbundled, make us a proper UI application
ProcessSerialNumber psn = { 0, kCurrentProcess }; [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
TransformProcessType(&psn, kProcessTransformToForegroundApplication);
// Having the app in front of the terminal window is also generally // Make us the active application
// handy. There is an NSApplication API to do this, but... [NSApp activateIgnoringOtherApps:YES];
SetFrontProcess(&psn);
#if defined(_GLFW_USE_MENUBAR) #if defined(_GLFW_USE_MENUBAR)
// Menu bar setup must go between sharedApplication above and // Menu bar setup must go between sharedApplication above and