From 48455a9403ee24ee897a279e31c71d47e4551e34 Mon Sep 17 00:00:00 2001 From: der richter Date: Mon, 20 Nov 2023 17:03:19 +0100 Subject: [PATCH] mac: title bar fix 1px none covered video at top there is 1px border at the top of the window that is not covered by our title bar and the video below is visible. this broke in some newer macOS version even so the calculation of size and position of the title bar is still correct. add 1px the the height of the title bar to cover up the unwanted border. --- video/out/mac/title_bar.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/mac/title_bar.swift b/video/out/mac/title_bar.swift index d1fd0491c7..764c1ff5dd 100644 --- a/video/out/mac/title_bar.swift +++ b/video/out/mac/title_bar.swift @@ -49,7 +49,7 @@ class TitleBar: NSVisualEffectView { init(frame: NSRect, window: NSWindow, common com: Common) { let f = NSMakeRect(0, frame.size.height - TitleBar.height, - frame.size.width, TitleBar.height) + frame.size.width, TitleBar.height + 1) common = com super.init(frame: f) buttons.forEach { $0.isHidden = true }