Don't process raw input when the window is being dragged or clicked on.

main
Sam Lantinga 2021-09-21 18:15:11 -07:00
parent 0fd54f91f4
commit 5d455cabf9
1 changed files with 4 additions and 0 deletions

View File

@ -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) */