From 5d455cabf98c84981d75d4cb3fcd4e869f4e7be5 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 21 Sep 2021 18:15:11 -0700 Subject: [PATCH] Don't process raw input when the window is being dragged or clicked on. --- src/video/windows/SDL_windowsevents.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c index 04ca69ac8..e995baa60 100644 --- a/src/video/windows/SDL_windowsevents.c +++ b/src/video/windows/SDL_windowsevents.c @@ -731,6 +731,10 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) } } + if (data->in_title_click || data->focus_click_pending) { + break; + } + GetRawInputData(hRawInput, RID_INPUT, &inp, &size, sizeof(RAWINPUTHEADER)); /* Mouse data (ignoring synthetic mouse events generated for touchscreens) */