From c3c085dc9e701b1de9e58b2a9f8a2dacb7f61a00 Mon Sep 17 00:00:00 2001 From: Dan Guzek Date: Mon, 14 Aug 2017 17:06:01 -0400 Subject: [PATCH] backport fullscreen fix for macOS (#1524) This backports the recent fullscreen fix for macOS on the master branch to the 5_1-new branch. Credit goes to GitHub user aeubanks for the original fix. --- src/archutils/Darwin/SMMain.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/archutils/Darwin/SMMain.mm b/src/archutils/Darwin/SMMain.mm index 11d5654177..7d56a1dc27 100644 --- a/src/archutils/Darwin/SMMain.mm +++ b/src/archutils/Darwin/SMMain.mm @@ -23,7 +23,8 @@ @implementation SMApplication - (void)fullscreen:(id)sender { - ArchHooks::SetToggleWindowed(); + // don't use ArchHooks::SetToggleWindowed(), it makes the screen black + [[self mainWindow] toggleFullScreen:nil]; } - (void)sendEvent:(NSEvent *)event