diff --git a/src/video/cocoa/SDL_cocoamouse.m b/src/video/cocoa/SDL_cocoamouse.m index d9292b877..f5b54ed38 100644 --- a/src/video/cocoa/SDL_cocoamouse.m +++ b/src/video/cocoa/SDL_cocoamouse.m @@ -257,7 +257,7 @@ Cocoa_SetRelativeMouseMode(SDL_bool enabled) */ SDL_WindowData *data = (SDL_WindowData *) window->driverdata; if ([data->listener isMoving]) { - return; + return 0; } CGError result;