Dont need to set origin since we are setting anchors

This commit is contained in:
Kovid Goyal 2025-09-28 20:22:40 +05:30
parent 8bef718c9a
commit e024226b0c
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -3295,8 +3295,7 @@ void clear_title_bar_background_views(NSWindow *window) {
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;