Skip to content

Commit e024226

Browse files
committed
Dont need to set origin since we are setting anchors
1 parent 8bef718 commit e024226

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

glfw/cocoa_window.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3295,8 +3295,7 @@ void clear_title_bar_background_views(NSWindow *window) {
32953295

32963296
const CGFloat height = title_bar_and_tool_bar_height(window);
32973297
debug_rendering("titlebar_height used for translucent titlebar view: %f\n", height);
3298-
NSView *bgView = [[NSView alloc] initWithFrame:NSMakeRect(
3299-
0, titlebarContainer.bounds.size.height - height, titlebarContainer.bounds.size.width, height)];
3298+
NSView *bgView = [[NSView alloc] initWithFrame:NSMakeRect(0, 0, titlebarContainer.bounds.size.width, height)];
33003299
bgView.translatesAutoresizingMaskIntoConstraints = NO;
33013300
bgView.wantsLayer = YES;
33023301
bgView.layer.backgroundColor = backgroundColor.CGColor;

0 commit comments

Comments
 (0)