Author: jimtabor
Date: Sat Apr 30 22:17:55 2011
New Revision: 51512
URL:
http://svn.reactos.org/svn/reactos?rev=51512&view=rev
Log:
[Win32k]
- Update key state when key and hardware is set before the event set. This allows input.c
to post and set key states.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] Sat Apr 30
22:17:55 2011
@@ -466,7 +466,6 @@
FocusMessageQueue->Desktop->pDeskInfo->LastInputWasKbd = TRUE;
Msg.pt = gpsi->ptCursor;
- update_input_key_state(FocusMessageQueue, &Msg);
MsqPostMessage(FocusMessageQueue, &Msg, TRUE, QS_KEY);
}
else
@@ -1006,6 +1005,9 @@
{
InsertTailList(&MessageQueue->HardwareMessagesListHead,
&Message->ListEntry);
+
+ if (MessageBits & QS_KEY)
+ update_input_key_state( MessageQueue, Msg );
}
Message->QS_Flags = MessageBits;