SDL
authorAlfred Reynolds <alfred@valvesoftware.com>
Fri, 31 Jul 2015 09:16:21 -0700
changeset 9822 371d82c6bf94
parent 9821 c1d91866a968
child 9823 9fb8a612dd7c
SDL - fix hint check, we want or not and
src/video/cocoa/SDL_cocoaevents.m
--- 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