From fc36e5d71ed38746ef52cf29cc329f1ae5b74884 Mon Sep 17 00:00:00 2001 From: der richter Date: Tue, 2 Apr 2024 22:24:58 +0200 Subject: mac/window: fix unfs window size retrieval the unfsContentFrame wasn't updated when externally resized leading to a wrong unfs window size afterwards. update it on windowDidResize event when not in fs, not animating and not live resizing. --- video/out/mac/window.swift | 3 +++ 1 file changed, 3 insertions(+) (limited to 'video/out/mac/window.swift') diff --git a/video/out/mac/window.swift b/video/out/mac/window.swift index 3c02bd90ca..fb82e3c274 100644 --- a/video/out/mac/window.swift +++ b/video/out/mac/window.swift @@ -550,6 +550,9 @@ class Window: NSWindow, NSWindowDelegate { } func windowDidResize(_ notification: Notification) { + if let contentViewFrame = contentView?.frame, !isAnimating && !isInFullscreen && !inLiveResize { + unfsContentFrame = convertToScreen(contentViewFrame) + } common.windowDidResize() } -- cgit v1.2.3