src/video/SDL_video.c
changeset 8071 1ac2db4abe11
parent 8062 4fc5f66d63cc
child 8072 9d8865351afd
     1.1 --- a/src/video/SDL_video.c	Mon Dec 23 17:15:32 2013 -0800
     1.2 +++ b/src/video/SDL_video.c	Mon Dec 23 17:37:22 2013 -0800
     1.3 @@ -2055,8 +2055,9 @@
     1.4  {
     1.5      if (_this->SetWindowGrab) {
     1.6          SDL_bool grabbed;
     1.7 -        if ((window->flags & SDL_WINDOW_INPUT_GRABBED) &&
     1.8 -            (window->flags & SDL_WINDOW_INPUT_FOCUS)) {
     1.9 +        if (SDL_GetMouse()->relative_mode_warp ||
    1.10 +            ((window->flags & SDL_WINDOW_INPUT_GRABBED) &&
    1.11 +             (window->flags & SDL_WINDOW_INPUT_FOCUS))) {
    1.12              grabbed = SDL_TRUE;
    1.13          } else {
    1.14              grabbed = SDL_FALSE;