summaryrefslogtreecommitdiffstats
path: root/video/out/mac/title_bar.swift
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2023-11-20 17:03:19 +0100
committerder richter <der.richter@gmx.de>2023-11-20 23:16:43 +0100
commit48455a9403ee24ee897a279e31c71d47e4551e34 (patch)
tree8ab384fc5122911ef154094abcb3a348c62796b1 /video/out/mac/title_bar.swift
parenteb71aa059ad4beb0bfdef118d666eafae7869c92 (diff)
downloadmpv-48455a9403ee24ee897a279e31c71d47e4551e34.tar.bz2
mpv-48455a9403ee24ee897a279e31c71d47e4551e34.tar.xz
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.
Diffstat (limited to 'video/out/mac/title_bar.swift')
-rw-r--r--video/out/mac/title_bar.swift2
1 files changed, 1 insertions, 1 deletions
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 }