Browse Source

Fixed relative mode mouse events stopping if you click on the title bar

Sam Lantinga 6 năm trước cách đây
mục cha
commit
6fe6946a2f

+ 3 - 0
src/video/windows/SDL_windowsevents.c

@@ -542,6 +542,9 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
                         SDL_SendMouseMotion(data->window, 0, 0, center_x, center_y);
                         SDL_SendMouseMotion(data->window, 0, 0, center_x, center_y);
                     }
                     }
                 }
                 }
+            } else {
+                /* We still need to update focus */
+                SDL_SetMouseFocus(data->window);
             }
             }
         }
         }
         /* don't break here, fall through to check the wParam like the button presses */
         /* don't break here, fall through to check the wParam like the button presses */