src/video/windows/SDL_windowsevents.c
changeset 7275 0a6b3b998814
parent 7191 75360622e65f
child 7276 37814e7eeff3
--- a/src/video/windows/SDL_windowsevents.c	Wed Jun 05 07:22:45 2013 -0700
+++ b/src/video/windows/SDL_windowsevents.c	Wed Jun 05 12:00:15 2013 -0700
@@ -446,14 +446,11 @@
 
 #ifdef WM_MOUSELEAVE
     case WM_MOUSELEAVE:
-        if (SDL_GetMouseFocus() == data->window) {
-            if (!SDL_GetMouse()->relative_mode) {
-                POINT cursorPos;
-                GetCursorPos(&cursorPos);
-                ScreenToClient(hwnd, &cursorPos);
-                SDL_SendMouseMotion(data->window, 0, 0, cursorPos.x, cursorPos.y);
-            }
-
+        if (SDL_GetMouseFocus() == data->window && !SDL_GetMouse()->relative_mode) {
+            POINT cursorPos;
+            GetCursorPos(&cursorPos);
+            ScreenToClient(hwnd, &cursorPos);
+            SDL_SendMouseMotion(data->window, 0, 0, cursorPos.x, cursorPos.y);
             SDL_SetMouseFocus(NULL);
         }
         returnCode = 0;