Mac: Fixed check for SDL_HINT_MAC_BACKGROUND_APP.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Fri, 31 Jul 2015 20:16:58 +0200
changeset 9826 0b5b4bf90f02
parent 9825 dfdb0933d57c
child 9827 6f0b76fa61e7
Mac: Fixed check for SDL_HINT_MAC_BACKGROUND_APP.
src/video/cocoa/SDL_cocoaevents.m
--- a/src/video/cocoa/SDL_cocoaevents.m	Fri Jul 31 20:16:18 2015 +0200
+++ b/src/video/cocoa/SDL_cocoaevents.m	Fri Jul 31 20:16:58 2015 +0200
@@ -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