From 6fe6946a2fceca155a6a706805c1027c3152b135 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 11 Feb 2020 21:19:05 -0800 Subject: [PATCH] Fixed relative mode mouse events stopping if you click on the title bar --- src/video/windows/SDL_windowsevents.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c index 7a668a86f1a86..d79d42c226292 100644 --- a/src/video/windows/SDL_windowsevents.c +++ b/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); } } + } 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 */