Merge branch 'fix/mac-os-window-cycle' of https://github.com/owenmead/kitty
This commit is contained in:
commit
77f2fef6a7
1 changed files with 3 additions and 0 deletions
|
|
@ -4088,6 +4088,9 @@ GLFWAPI void glfwCocoaSetWindowChrome(GLFWwindow *w, unsigned int color, bool us
|
|||
) [filteredWindows addObject:window];
|
||||
}
|
||||
if (filteredWindows.count < 2) return;
|
||||
[filteredWindows sortUsingComparator:^NSComparisonResult(NSWindow *a, NSWindow *b) {
|
||||
return [@(a.windowNumber) compare:@(b.windowNumber)];
|
||||
}];
|
||||
NSWindow *keyWindow = [NSApp keyWindow];
|
||||
NSUInteger index = [filteredWindows indexOfObject:keyWindow];
|
||||
NSUInteger nextIndex = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue