aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Filipenkov <decapitator@ukr.net>2022-09-13 13:33:03 +0300
committerAndrey Filipenkov <decapitator@ukr.net>2022-09-13 13:52:39 +0300
commit85802f599622e74bb893d99bf8cff7dcacb68605 (patch)
tree96e3b77a0d73fe84c5f1e1ace715bec617d6c227
parentaac12f6fc42510b9fed6aea9cbfa9f07c41e379e (diff)
[macOS] prevent crash on app quit
happens if you switch between fullscreen/window or between different displays over-release probably happens inside SDL
-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];