aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@users.noreply.github.com>2022-12-18 15:04:03 +1000
committerGitHub <noreply@github.com>2022-12-18 15:04:03 +1000
commit31070d4d3210b784de8649106569b78a6a6414ea (patch)
treec5e7b9d3dad88c4ea77da26034928103faacc4f1
parent057cdc725ed6c13becb1ef01c183c11544f7a196 (diff)
parent85802f599622e74bb893d99bf8cff7dcacb68605 (diff)
Merge pull request #21864 from kambala-decapitator/matrix-macos-fix-crash-on-exit
[backport][macOS] prevent crash on app quit
-rw-r--r--xbmc/windowing/osx/WinSystemOSX.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/xbmc/windowing/osx/WinSystemOSX.mm b/xbmc/windowing/osx/WinSystemOSX.mm
index 9eea5b9012..d7a1a8843a 100644
--- a/xbmc/windowing/osx/WinSystemOSX.mm
+++ b/xbmc/windowing/osx/WinSystemOSX.mm
@@ -997,6 +997,7 @@ bool CWinSystemOSX::SetFullScreen(bool fullScreen, RESOLUTION_INFO& res, bool bl
backing:NSBackingStoreBuffered
defer:NO
screen:pScreen];
+ windowedFullScreenwindow.releasedWhenClosed = NO;
[windowedFullScreenwindow setBackgroundColor:[NSColor blackColor]];
[windowedFullScreenwindow makeKeyAndOrderFront:nil];