mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
Fixed process transform when no menu bar.
This commit is contained in:
parent
1c79d8a8e4
commit
22e1aa6cfc
@ -106,6 +106,8 @@ See the [GLFW 3.0 documentation](http://www.glfw.org/docs/3.0/).
|
|||||||
coordinates
|
coordinates
|
||||||
- [Cocoa] Bugfix: Messages not supported on Mac OS X 10.6 were used without
|
- [Cocoa] Bugfix: Messages not supported on Mac OS X 10.6 were used without
|
||||||
tests for precence
|
tests for precence
|
||||||
|
- [Cocoa] Bugfix: Process transformation was not performed if menu bar creation
|
||||||
|
was disabled
|
||||||
- [Win32] Bugfix: Context creation was attempted even if no valid pixel formats
|
- [Win32] Bugfix: Context creation was attempted even if no valid pixel formats
|
||||||
had been found
|
had been found
|
||||||
- [X11] Bugfix: Duplicate window position and window and framebuffer size
|
- [X11] Bugfix: Duplicate window position and window and framebuffer size
|
||||||
|
@ -688,14 +688,6 @@ static NSString* findAppName(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we get here, the application is unbundled
|
|
||||||
ProcessSerialNumber psn = { 0, kCurrentProcess };
|
|
||||||
TransformProcessType(&psn, kProcessTransformToForegroundApplication);
|
|
||||||
|
|
||||||
// Having the app in front of the terminal window is also generally
|
|
||||||
// handy. There is an NSApplication API to do this, but...
|
|
||||||
SetFrontProcess(&psn);
|
|
||||||
|
|
||||||
char** progname = _NSGetProgname();
|
char** progname = _NSGetProgname();
|
||||||
if (progname && *progname)
|
if (progname && *progname)
|
||||||
return [NSString stringWithUTF8String:*progname];
|
return [NSString stringWithUTF8String:*progname];
|
||||||
@ -781,6 +773,14 @@ 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
|
||||||
|
ProcessSerialNumber psn = { 0, kCurrentProcess };
|
||||||
|
TransformProcessType(&psn, kProcessTransformToForegroundApplication);
|
||||||
|
|
||||||
|
// Having the app in front of the terminal window is also generally
|
||||||
|
// handy. There is an NSApplication API to do this, but...
|
||||||
|
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
|
||||||
// finishLaunching below, in order to properly emulate the behavior
|
// finishLaunching below, in order to properly emulate the behavior
|
||||||
|
Loading…
Reference in New Issue
Block a user