src/video/cocoa/SDL_cocoamouse.m
changeset 8800 0d406d07509b
parent 8263 e22c4959e385
child 8815 c6d0a457f3b2
     1.1 --- a/src/video/cocoa/SDL_cocoamouse.m	Mon Jun 02 09:01:26 2014 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoamouse.m	Mon Jun 02 09:06:38 2014 -0700
     1.3 @@ -271,6 +271,15 @@
     1.4      if (result != kCGErrorSuccess) {
     1.5          return SDL_SetError("CGAssociateMouseAndMouseCursorPosition() failed");
     1.6      }
     1.7 +
     1.8 +    /* The hide/unhide calls are redundant most of the time, but they fix
     1.9 +     * https://bugzilla.libsdl.org/show_bug.cgi?id=2550
    1.10 +     */
    1.11 +    if (enabled) {
    1.12 +        [NSCursor hide];
    1.13 +    } else {
    1.14 +        [NSCursor unhide];
    1.15 +    }
    1.16      return 0;
    1.17  }
    1.18