diff --git a/windows/input.c b/windows/input.c index 1a173b440c1..73cd69a193b 100644 --- a/windows/input.c +++ b/windows/input.c @@ -362,12 +362,12 @@ void WINAPI mouse_event( DWORD dwFlags, DWORD dx, DWORD dy, } else { - if ( dwFlags & MOUSEEVENTF_MOVE ) /* we have to actually move the cursor */ - SetCursorPos( PosX, PosY ); - input.u.mi.time = GetCurrentTime(); input.u.mi.dwExtraInfo = dwExtraInfo; SendInput( 1, &input, sizeof(input) ); + + if ( dwFlags & MOUSEEVENTF_MOVE ) /* we have to actually move the cursor */ + SetCursorPos( PosX, PosY ); } }