src/video/cocoa/SDL_cocoaevents.m
changeset 9822 371d82c6bf94
parent 9820 c0bcc39a3491
child 9826 0b5b4bf90f02
equal deleted inserted replaced
9821:c1d91866a968 9822:371d82c6bf94
   318     if (NSApp == nil) {
   318     if (NSApp == nil) {
   319         [SDLApplication sharedApplication];
   319         [SDLApplication sharedApplication];
   320         SDL_assert(NSApp != nil);
   320         SDL_assert(NSApp != nil);
   321 
   321 
   322         const char *hint = SDL_GetHint(SDL_HINT_MAC_BACKGROUND_APP);
   322         const char *hint = SDL_GetHint(SDL_HINT_MAC_BACKGROUND_APP);
   323 		if (!hint && *hint != '0') {
   323 		if (!hint || *hint != '0') {
   324 #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6
   324 #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6
   325 			if ([NSApp respondsToSelector:@selector(setActivationPolicy:)]) {
   325 			if ([NSApp respondsToSelector:@selector(setActivationPolicy:)]) {
   326 #endif
   326 #endif
   327 				[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
   327 				[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
   328 #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6
   328 #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6