Skip to content
Permalink
Browse files

Mac: Fixed check for SDL_HINT_MAC_BACKGROUND_APP.

  • Loading branch information
philippwiesemann committed Jul 31, 2015
1 parent c509e79 commit c57f409fe8128b923dddf6c1a59126bbd066d87c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/cocoa/SDL_cocoaevents.m
@@ -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

0 comments on commit c57f409

Please sign in to comment.