changeset 9822 | 371d82c6bf94 |
parent 9820 | c0bcc39a3491 |
child 9826 | 0b5b4bf90f02 |
--- a/src/video/cocoa/SDL_cocoaevents.m Thu Jul 30 10:01:04 2015 -0700 +++ b/src/video/cocoa/SDL_cocoaevents.m Fri Jul 31 09:16:21 2015 -0700 @@ -320,7 +320,7 @@ SDL_assert(NSApp != nil); const char *hint = SDL_GetHint(SDL_HINT_MAC_BACKGROUND_APP); - if (!hint && *hint != '0') { + if (!hint || *hint != '0') { #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6 if ([NSApp respondsToSelector:@selector(setActivationPolicy:)]) { #endif