We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e0b3f8 commit 21fa5bbCopy full SHA for 21fa5bb
glfw/cocoa_window.m
@@ -2291,8 +2291,13 @@ int _glfwPlatformWindowBell(_GLFWwindow* window UNUSED)
2291
2292
void _glfwPlatformFocusWindow(_GLFWwindow* window)
2293
{
2294
- // Make us the active application
+ if (_glfwPlatformWindowIconified(window)) {
2295
+ // miniaturized windows return false in canBecomeKeyWindow therefore
2296
+ // unminiaturize first
2297
+ [window->ns.object deminiaturize:nil];
2298
+ }
2299
if ([window->ns.object canBecomeKeyWindow]) {
2300
+ // Make us the active application
2301
[NSApp activateIgnoringOtherApps:YES];
2302
[window->ns.object makeKeyAndOrderFront:nil];
2303
}
0 commit comments