1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 13:50:32 +05:30

Hide mouse cursor with controls in fullscreen on Mac

This commit is contained in:
Arkadiusz Fal 2022-11-13 13:54:05 +01:00
parent 4206b25f88
commit bd08cf02ad

View File

@ -42,6 +42,9 @@ final class PlayerControlsModel: ObservableObject {
self?.resetTimer() self?.resetTimer()
} }
} else { } else {
#if os(macOS)
NSCursor.setHiddenUntilMouseMoves(player.playingFullScreen)
#endif
if !player.musicMode { if !player.musicMode {
DispatchQueue.main.async(qos: .userInteractive) { [weak self] in DispatchQueue.main.async(qos: .userInteractive) { [weak self] in
player.backend.stopControlsUpdates() player.backend.stopControlsUpdates()