src/video/windows/SDL_windowsmouse.c
changeset 8976 1a5d959d7b32
parent 8956 a99e30f2bf0a
child 9619 b94b6d0bff0f
equal deleted inserted replaced
8975:180271d72b1e 8976:1a5d959d7b32
   256 WIN_CaptureMouse(SDL_Window *window)
   256 WIN_CaptureMouse(SDL_Window *window)
   257 {
   257 {
   258     if (!window) {
   258     if (!window) {
   259         SDL_Window *focusWin = SDL_GetKeyboardFocus();
   259         SDL_Window *focusWin = SDL_GetKeyboardFocus();
   260         if (focusWin) {
   260         if (focusWin) {
   261             SDL_WindowData *data = (SDL_WindowData *)focusWin->driverdata;
       
   262             WIN_OnWindowEnter(SDL_GetVideoDevice(), focusWin);  /* make sure WM_MOUSELEAVE messages are (re)enabled. */
   261             WIN_OnWindowEnter(SDL_GetVideoDevice(), focusWin);  /* make sure WM_MOUSELEAVE messages are (re)enabled. */
   263         }
   262         }
   264     }
   263     }
   265 
   264 
   266     /* While we were thinking of SetCapture() when designing this API in SDL,
   265     /* While we were thinking of SetCapture() when designing this API in SDL,