Skip to content

Commit 5d455ca

Browse files
committed
Don't process raw input when the window is being dragged or clicked on.
1 parent 0fd54f9 commit 5d455ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/video/windows/SDL_windowsevents.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,10 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
731731
}
732732
}
733733

734+
if (data->in_title_click || data->focus_click_pending) {
735+
break;
736+
}
737+
734738
GetRawInputData(hRawInput, RID_INPUT, &inp, &size, sizeof(RAWINPUTHEADER));
735739

736740
/* Mouse data (ignoring synthetic mouse events generated for touchscreens) */

0 commit comments

Comments
 (0)