Reset ps2buttons to avoid button messages from being discarded.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Stephen Brooks <nightbikeman@gmail.com>
This commit is contained in:
Stephen Brooks
2011-05-18 22:48:34 +01:00
committed by Jakob Bornecrantz
parent 3a828d8767
commit 3c8ccf5eec

View File

@@ -1120,12 +1120,12 @@ GetVMMouseMotionEvent(InputInfoPtr pInfo){
VMMousePrivPtr mPriv;
int buttons, dx, dy, dz, dw;
VMMOUSE_INPUT_DATA vmmouseInput;
int ps2Buttons = 0;
int numPackets;
pMse = pInfo->private;
mPriv = (VMMousePrivPtr)pMse->mousePriv;
while((numPackets = VMMouseClient_GetInput(&vmmouseInput))){
int ps2Buttons = 0;
if (numPackets == VMMOUSE_ERROR) {
VMMouseClient_Disable();
VMMouseClient_Enable();