mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 12:42:25 +00:00
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 @@ glfwCocoaCycleThroughOSWindows(bool backwards) {
|
|||
) [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…
Add table
Add a link
Reference in a new issue