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.
This commit is contained in:
der richter 2023-11-20 17:03:19 +01:00
parent eb71aa059a
commit 48455a9403
1 changed files with 1 additions and 1 deletions

View File

@ -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 }