From e024226b0c6dc642896e776d1052664b0634a685 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 28 Sep 2025 20:22:40 +0530 Subject: [PATCH] Dont need to set origin since we are setting anchors --- glfw/cocoa_window.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index a28ddc61b..b484be022 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -3295,8 +3295,7 @@ set_title_bar_background(NSWindow *window, NSColor *backgroundColor) { const CGFloat height = title_bar_and_tool_bar_height(window); debug_rendering("titlebar_height used for translucent titlebar view: %f\n", height); - NSView *bgView = [[NSView alloc] initWithFrame:NSMakeRect( - 0, titlebarContainer.bounds.size.height - height, titlebarContainer.bounds.size.width, height)]; + NSView *bgView = [[NSView alloc] initWithFrame:NSMakeRect(0, 0, titlebarContainer.bounds.size.width, height)]; bgView.translatesAutoresizingMaskIntoConstraints = NO; bgView.wantsLayer = YES; bgView.layer.backgroundColor = backgroundColor.CGColor;