From fc9e3a69b771b909678c0210a9b54a0d3b00e545 Mon Sep 17 00:00:00 2001 From: "J?rgen P. Tjern?" Date: Tue, 15 Apr 2014 13:53:07 -0700 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/src/video/cocoa/SDL_cocoaevents.m b/src/video/cocoa/SDL_cocoaevents.m index 9c0d2b2ac..11b5ee106 100644 --- a/src/video/cocoa/SDL_cocoaevents.m +++ b/src/video/cocoa/SDL_cocoaevents.m @@ -282,6 +282,7 @@ Cocoa_RegisterApp(void) NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys: [NSNumber numberWithBool:NO], @"AppleMomentumScrollSupported", [NSNumber numberWithBool:NO], @"ApplePressAndHoldEnabled", + [NSNumber numberWithBool:YES], @"ApplePersistenceIgnoreState", nil]; [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults]; [appDefaults release];