mirror of
https://github.com/reactos/reactos.git
synced 2025-07-10 07:24:13 +00:00
- move set of msg-time (for messages) back to msg queue (msg time is needed for all mouse events not only mouse move)
- ClickLock will work again svn path=/trunk/; revision=47917
This commit is contained in:
parent
576026667c
commit
dd54fd1837
2 changed files with 3 additions and 4 deletions
|
@ -179,7 +179,6 @@ BOOL UserSetCursorPos( INT x, INT y, BOOL CallHooks)
|
|||
{
|
||||
PWINDOW_OBJECT DesktopWindow;
|
||||
PSYSTEM_CURSORINFO CurInfo;
|
||||
LARGE_INTEGER LargeTickCount;
|
||||
MSLLHOOKSTRUCT MouseHookData;
|
||||
HDC hDC;
|
||||
MSG Msg;
|
||||
|
@ -223,9 +222,6 @@ BOOL UserSetCursorPos( INT x, INT y, BOOL CallHooks)
|
|||
gpsi->ptCursor.x = x;
|
||||
gpsi->ptCursor.y = y;
|
||||
|
||||
KeQueryTickCount(&LargeTickCount);
|
||||
Msg.time = MsqCalculateMessageTime(&LargeTickCount);
|
||||
|
||||
//Move the mouse pointer
|
||||
GreMovePointer(hDC, x, y);
|
||||
|
||||
|
|
|
@ -171,9 +171,12 @@ MsqInitializeImpl(VOID)
|
|||
VOID FASTCALL
|
||||
MsqInsertSystemMessage(MSG* Msg)
|
||||
{
|
||||
LARGE_INTEGER LargeTickCount;
|
||||
KIRQL OldIrql;
|
||||
ULONG Prev;
|
||||
|
||||
KeQueryTickCount(&LargeTickCount);
|
||||
Msg->time = MsqCalculateMessageTime(&LargeTickCount);
|
||||
/*
|
||||
* If we got WM_MOUSEMOVE and there are already messages in the
|
||||
* system message queue, check if the last message is mouse move
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue