mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
macOS: focusing of minimized window broken
This was done to fix #8913 in d7c2cdc.
Explicitly de-miniaturize before making key.
This commit is contained in:
@@ -2291,8 +2291,13 @@ int _glfwPlatformWindowBell(_GLFWwindow* window UNUSED)
|
||||
|
||||
void _glfwPlatformFocusWindow(_GLFWwindow* window)
|
||||
{
|
||||
// Make us the active application
|
||||
if (_glfwPlatformWindowIconified(window)) {
|
||||
// miniaturized windows return false in canBecomeKeyWindow therefore
|
||||
// unminiaturize first
|
||||
[window->ns.object deminiaturize:nil];
|
||||
}
|
||||
if ([window->ns.object canBecomeKeyWindow]) {
|
||||
// Make us the active application
|
||||
[NSApp activateIgnoringOtherApps:YES];
|
||||
[window->ns.object makeKeyAndOrderFront:nil];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user