Merge branch 'fix-mouse-grabbing' into 'master'

Fix mouse being grabbed even when not used

See merge request STJr/SRB2!639
This commit is contained in:
James R 2020-01-05 18:46:13 -05:00
commit ea3c36eb13
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ void I_UpdateMouseGrab(void)
{
if (SDL_WasInit(SDL_INIT_VIDEO) == SDL_INIT_VIDEO && window != NULL
&& SDL_GetMouseFocus() == window && SDL_GetKeyboardFocus() == window
&& !IGNORE_MOUSE)
&& USE_MOUSEINPUT && !IGNORE_MOUSE)
SDLdoGrabMouse();
}