Mac: Don't prompt to reopen windows after crash.
authorJørgen P. Tjernø <jorgen@valvesoftware.com>
Tue, 15 Apr 2014 13:53:07 -0700
changeset 871861ae7b328789
parent 8717 67b9285b0000
child 8719 135b8fef4adb
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.
src/video/cocoa/SDL_cocoaevents.m
     1.1 --- a/src/video/cocoa/SDL_cocoaevents.m	Thu Apr 17 22:40:57 2014 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoaevents.m	Tue Apr 15 13:53:07 2014 -0700
     1.3 @@ -282,6 +282,7 @@
     1.4          NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys:
     1.5              [NSNumber numberWithBool:NO], @"AppleMomentumScrollSupported",
     1.6              [NSNumber numberWithBool:NO], @"ApplePressAndHoldEnabled",
     1.7 +            [NSNumber numberWithBool:YES], @"ApplePersistenceIgnoreState",
     1.8              nil];
     1.9          [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
    1.10          [appDefaults release];