diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2023-01-27 09:59:12 +0100 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@qt.io> | 2023-01-30 16:39:19 +0100 |
commit | ade96ff6446d4b0977d4e5f03b96b77ff8223b8b (patch) | |
tree | 7048048f3618fe48098f32cb90de4b1c03a4c777 /src/plugins/platforms/windows/qwindowscontext.cpp | |
parent | 817151c70d0b1069c6e400cdb53dfa24ba4bfbc5 (diff) |
Revert "Windows: use MSG timestamps for input events"
This reverts commit baa5888807d3db57603398ae7aa27866efdbd711.
The change caused breakages in qtdeclarative's auto tests. Current
assumption is that we need the system timestamps for other events as
well. Reverting now to unblock CI.
Fixes: QTBUG-110596
Change-Id: I9583627bc058ff0d6cadfa622eed119fb41ca4a1
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowscontext.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowscontext.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/platforms/windows/qwindowscontext.cpp b/src/plugins/platforms/windows/qwindowscontext.cpp index 3fe91d2935..718cfe11d8 100644 --- a/src/plugins/platforms/windows/qwindowscontext.cpp +++ b/src/plugins/platforms/windows/qwindowscontext.cpp @@ -1000,10 +1000,9 @@ bool QWindowsContext::windowsProc(HWND hwnd, UINT message, MSG msg; msg.hwnd = hwnd; // re-create MSG structure - msg.message = message; + msg.message = message; // time and pt fields ignored msg.wParam = wParam; msg.lParam = lParam; - msg.time = GetMessageTime(); msg.pt.x = msg.pt.y = 0; if (et != QtWindows::CursorEvent && (et & (QtWindows::MouseEventFlag | QtWindows::NonClientEventFlag))) { msg.pt.x = GET_X_LPARAM(lParam); |