From c57f409fe8128b923dddf6c1a59126bbd066d87c Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Fri, 31 Jul 2015 20:16:58 +0200 Subject: [PATCH] Mac: Fixed check for SDL_HINT_MAC_BACKGROUND_APP. --- src/video/cocoa/SDL_cocoaevents.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/cocoa/SDL_cocoaevents.m b/src/video/cocoa/SDL_cocoaevents.m index 3c9a040d0..994da1825 100644 --- a/src/video/cocoa/SDL_cocoaevents.m +++ b/src/video/cocoa/SDL_cocoaevents.m @@ -320,7 +320,7 @@ Cocoa_RegisterApp(void) 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