From bd08cf02aded5bb913d5bcffa88537a9f16965f6 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 13 Nov 2022 13:54:05 +0100 Subject: [PATCH] Hide mouse cursor with controls in fullscreen on Mac --- Model/Player/PlayerControlsModel.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Model/Player/PlayerControlsModel.swift b/Model/Player/PlayerControlsModel.swift index f5cf3111..9912fbd1 100644 --- a/Model/Player/PlayerControlsModel.swift +++ b/Model/Player/PlayerControlsModel.swift @@ -42,6 +42,9 @@ final class PlayerControlsModel: ObservableObject { self?.resetTimer() } } else { + #if os(macOS) + NSCursor.setHiddenUntilMouseMoves(player.playingFullScreen) + #endif if !player.musicMode { DispatchQueue.main.async(qos: .userInteractive) { [weak self] in player.backend.stopControlsUpdates()