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.
This commit is contained in:
Dan Guzek
2017-08-14 14:06:01 -07:00
committed by Colby Klein
parent 1210dd7c42
commit c3c085dc9e
+2 -1
View File
@@ -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