mirror of
https://github.com/yattee/yattee.git
synced 2026-07-21 06:42:01 +00:00
Fix fullscreen not working when player window is pinned on macOS
A pinned window carries .fullScreenAuxiliary, which AppKit refuses to make a primary fullscreen window, so toggleFullScreen was a silent no-op. Drop the floating config before entering fullscreen and restore it in windowDidExitFullScreen, keeping the pin setting intact.
This commit is contained in:
@@ -1571,8 +1571,9 @@ extension ExpandedPlayerSheet {
|
||||
playerService.seekBackward(by: seconds)
|
||||
},
|
||||
onToggleFullscreen: {
|
||||
// Toggle native macOS fullscreen
|
||||
NSApp.keyWindow?.toggleFullScreen(nil)
|
||||
// Toggle native macOS fullscreen (drops the floating
|
||||
// config first so a pinned window can enter fullscreen)
|
||||
ExpandedPlayerWindowManager.shared.toggleFullScreen()
|
||||
},
|
||||
isFullscreen: NSApp.keyWindow?.styleMask.contains(.fullScreen) == true,
|
||||
onClose: { [self] in
|
||||
|
||||
Reference in New Issue
Block a user