This commit is contained in:
Kovid Goyal 2026-08-25 15:43:36 +05:30
commit 087b8c35c4
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 1 additions and 14 deletions

View file

@ -3910,18 +3910,6 @@ apply_titlebar_color_settings(_GLFWwindow *window) {
#undef tc
}
static void
apply_window_corner_curve(_GLFWwindow *window) {
if (!window || !window->decorated) return;
if (@available(macOS 26.0, *)) {
GLFWWindow *nsw = window->ns.object;
NSView *frame_view = nsw.contentView.superview;
CALayer *layer = frame_view.layer;
if (!layer) return;
layer.cornerCurve = kCACornerCurveContinuous;
}
}
GLFWAPI void
glfwCocoaSetWindowLevel(GLFWwindow *w, const char *level_spec) {
@ -4064,7 +4052,6 @@ glfwCocoaSetWindowChrome(
if (desired_mask != current_style_mask) { [nsw setStyleMask:desired_mask]; }
#undef tc
apply_titlebar_color_settings(window);
apply_window_corner_curve(window);
// HACK: Changing the style mask can cause the first responder to be cleared
[nsw makeFirstResponder:window->ns.view];

View file

@ -1213,7 +1213,7 @@ def glfw_init_env(
elif module == 'cocoa':
ans.cppflags.append('-DGL_SILENCE_DEPRECATION')
for f_ in 'Cocoa IOKit CoreFoundation CoreVideo QuartzCore UniformTypeIdentifiers'.split():
for f_ in 'Cocoa IOKit CoreFoundation CoreVideo UniformTypeIdentifiers'.split():
ans.ldpaths.extend(('-framework', f_))
elif module == 'wayland':