Skip to content

Commit

Permalink
Mac: Fixed check for SDL_HINT_MAC_BACKGROUND_APP.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Jul 31, 2015
1 parent c509e79 commit c57f409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoaevents.m
Expand Up @@ -320,7 +320,7 @@ - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filenam
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
Expand Down

0 comments on commit c57f409

Please sign in to comment.