src/video/cocoa/SDL_cocoawindow.m
changeset 10378 cb7f88c92a2e
parent 10366 e1b52e69578b
child 10385 ad12658bc7ae
equal deleted inserted replaced
10377:7fde2d881171 10378:cb7f88c92a2e
  1116     }
  1116     }
  1117 }
  1117 }
  1118 
  1118 
  1119 - (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
  1119 - (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
  1120 {
  1120 {
  1121     const char *hint = SDL_GetHint(SDL_HINT_MAC_MOUSE_FOCUS_CLICKTHROUGH);
  1121     const char *hint = SDL_GetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH);
       
  1122     if (!hint) {
       
  1123         /* Check older hint for backwards compatibility */
       
  1124         hint = SDL_GetHint("SDL_MAC_MOUSE_FOCUS_CLICKTHROUGH");
       
  1125     }
  1122     return hint && *hint != '0';
  1126     return hint && *hint != '0';
  1123 }
  1127 }
  1124 @end
  1128 @end
  1125 
  1129 
  1126 static int
  1130 static int