Skip to content
Browse files

Mac: Don't prompt to reopen windows after crash.

We don't support state serialization / resume, so disable the prompt
that pops up asking if you want to reopen the windows.
  • Loading branch information
jorgenpt committed Apr 15, 2014
1 parent 353feb5 commit fc9e3a69b771b909678c0210a9b54a0d3b00e545
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/video/cocoa/SDL_cocoaevents.m
@@ -282,6 +282,7 @@ - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filenam
NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys:
[NSNumber numberWithBool:NO], @"AppleMomentumScrollSupported",
[NSNumber numberWithBool:NO], @"ApplePressAndHoldEnabled",
[NSNumber numberWithBool:YES], @"ApplePersistenceIgnoreState",
[[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
[appDefaults release];

0 comments on commit fc9e3a6

Please sign in to comment.