Skip to content

Commit

Permalink
Mac: Don't prompt to reopen windows after crash.
Browse files Browse the repository at this point in the history
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 fc9e3a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/cocoa/SDL_cocoaevents.m
Expand Up @@ -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",
nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
[appDefaults release];
Expand Down

0 comments on commit fc9e3a6

Please sign in to comment.