Fix bug #9215 cmd+` now cycles windows properly on MacOS Tahoe

This commit is contained in:
Owen Mead-Robins 2026-04-21 11:52:12 -07:00
parent b4f7162a73
commit 44d530f82e

View file

@ -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;