From 9f153e2a20174147130a31387d022f62ddd94cf0 Mon Sep 17 00:00:00 2001 From: low-batt <86170219+low-batt@users.noreply.github.com> Date: Mon, 18 Aug 2025 14:29:54 -0400 Subject: [PATCH] mac/vulkan: fix frame not displayed when paused add event handler for when window's occlusion state changes and now indicates some or all of the window is visible. handling of the event is needed due to the addition of a visibility check for rendering that was added in commit 5010c24. Fixes #16693 --- video/out/mac_common.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/video/out/mac_common.swift b/video/out/mac_common.swift index 8e48d0f513..27c2ec972d 100644 --- a/video/out/mac_common.swift +++ b/video/out/mac_common.swift @@ -168,4 +168,8 @@ class MacCommon: Common { layer?.contentsScale = window?.backingScaleFactor ?? 1 windowDidResize() } + + override func windowDidChangeOcclusionState() { + flagEvents(VO_EVENT_EXPOSE) + } }