mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 13:20:58 +00:00
Merge 8b042c28e2
into 8f0fd7ecf5
This commit is contained in:
commit
bb1f41edb7
@ -1060,12 +1060,16 @@ void _glfwPlatformShowWindow(_GLFWwindow* window)
|
||||
// should probably not be done every time any window is shown
|
||||
[NSApp activateIgnoringOtherApps:YES];
|
||||
|
||||
_GLFWwindow* previous = _glfwPlatformGetCurrentContext();
|
||||
[window->ns.object makeKeyAndOrderFront:nil];
|
||||
_glfwPlatformMakeContextCurrent(previous);
|
||||
}
|
||||
|
||||
void _glfwPlatformUnhideWindow(_GLFWwindow* window)
|
||||
{
|
||||
_GLFWwindow* previous = _glfwPlatformGetCurrentContext();
|
||||
[window->ns.object orderFront:nil];
|
||||
_glfwPlatformMakeContextCurrent(previous);
|
||||
}
|
||||
|
||||
void _glfwPlatformHideWindow(_GLFWwindow* window)
|
||||
|
Loading…
Reference in New Issue
Block a user