mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00: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:
parent
1e0b3f808f
commit
21fa5bb1ce
1 changed files with 6 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue