diff options
author | der richter <der.richter@gmx.de> | 2020-03-21 13:48:23 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2020-04-25 11:37:53 +0200 |
commit | 4deae5e4b53220c5becd7312a4b0d7f5707d5757 (patch) | |
tree | c096eb1c7890631b37ad8bd1cd66af8a3bde76dd /video/out/cocoa-cb | |
parent | 71295fb872ba6593c8591cff7398498e05afb298 (diff) | |
download | mpv-4deae5e4b53220c5becd7312a4b0d7f5707d5757.tar.bz2 mpv-4deae5e4b53220c5becd7312a4b0d7f5707d5757.tar.xz |
cocoa-cb: report actual unfs window size for current window scale
Diffstat (limited to 'video/out/cocoa-cb')
-rw-r--r-- | video/out/cocoa-cb/window.swift | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/cocoa-cb/window.swift b/video/out/cocoa-cb/window.swift index 9391b0d652..b1a5b6c26b 100644 --- a/video/out/cocoa-cb/window.swift +++ b/video/out/cocoa-cb/window.swift @@ -497,6 +497,10 @@ class Window: NSWindow, NSWindowDelegate { func windowDidEndLiveResize(_ notification: Notification) { cocoaCB.layer?.inLiveResize = false cocoaCB.mpv?.setConfigProperty(maximized: isZoomed) + + if let contentViewFrame = contentView?.frame, !isAnimating { + unfsContentFrame = convertToScreen(contentViewFrame) + } } func windowShouldClose(_ sender: NSWindow) -> Bool { |