mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 21:30:57 +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
|
// should probably not be done every time any window is shown
|
||||||
[NSApp activateIgnoringOtherApps:YES];
|
[NSApp activateIgnoringOtherApps:YES];
|
||||||
|
|
||||||
|
_GLFWwindow* previous = _glfwPlatformGetCurrentContext();
|
||||||
[window->ns.object makeKeyAndOrderFront:nil];
|
[window->ns.object makeKeyAndOrderFront:nil];
|
||||||
|
_glfwPlatformMakeContextCurrent(previous);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _glfwPlatformUnhideWindow(_GLFWwindow* window)
|
void _glfwPlatformUnhideWindow(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
|
_GLFWwindow* previous = _glfwPlatformGetCurrentContext();
|
||||||
[window->ns.object orderFront:nil];
|
[window->ns.object orderFront:nil];
|
||||||
|
_glfwPlatformMakeContextCurrent(previous);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _glfwPlatformHideWindow(_GLFWwindow* window)
|
void _glfwPlatformHideWindow(_GLFWwindow* window)
|
||||||
|
Loading…
Reference in New Issue
Block a user