Browse Source

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

Sam Lantinga 3 years ago
parent
commit
5d455cabf9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/video/windows/SDL_windowsevents.c

+ 4 - 0
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) */