Fixed relative mode mouse events stopping if you click on the title bar
authorSam Lantinga <slouken@libsdl.org>
Tue, 11 Feb 2020 21:19:05 -0800
changeset 135111bc601a25155
parent 13510 8a356f708f40
child 13512 d85e27d937eb
Fixed relative mode mouse events stopping if you click on the title bar
src/video/windows/SDL_windowsevents.c
     1.1 --- a/src/video/windows/SDL_windowsevents.c	Tue Feb 11 16:23:43 2020 -0800
     1.2 +++ b/src/video/windows/SDL_windowsevents.c	Tue Feb 11 21:19:05 2020 -0800
     1.3 @@ -542,6 +542,9 @@
     1.4                          SDL_SendMouseMotion(data->window, 0, 0, center_x, center_y);
     1.5                      }
     1.6                  }
     1.7 +            } else {
     1.8 +                /* We still need to update focus */
     1.9 +                SDL_SetMouseFocus(data->window);
    1.10              }
    1.11          }
    1.12          /* don't break here, fall through to check the wParam like the button presses */