mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 11:11:47 +02:00
Merge branch 'fix/mac-os-window-cycle' of https://github.com/owenmead/kitty
This commit is contained in:
@@ -4088,6 +4088,9 @@ glfwCocoaCycleThroughOSWindows(bool backwards) {
|
|||||||
) [filteredWindows addObject:window];
|
) [filteredWindows addObject:window];
|
||||||
}
|
}
|
||||||
if (filteredWindows.count < 2) return;
|
if (filteredWindows.count < 2) return;
|
||||||
|
[filteredWindows sortUsingComparator:^NSComparisonResult(NSWindow *a, NSWindow *b) {
|
||||||
|
return [@(a.windowNumber) compare:@(b.windowNumber)];
|
||||||
|
}];
|
||||||
NSWindow *keyWindow = [NSApp keyWindow];
|
NSWindow *keyWindow = [NSApp keyWindow];
|
||||||
NSUInteger index = [filteredWindows indexOfObject:keyWindow];
|
NSUInteger index = [filteredWindows indexOfObject:keyWindow];
|
||||||
NSUInteger nextIndex = 0;
|
NSUInteger nextIndex = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user