From 3c8ccf5eec3177ed8976ed5ff04795a20287d2d8 Mon Sep 17 00:00:00 2001 From: Stephen Brooks Date: Wed, 18 May 2011 22:48:34 +0100 Subject: Reset ps2buttons to avoid button messages from being discarded. Reviewed-by: Peter Hutterer Reviewed-by: Jakob Bornecrantz Signed-off-by: Jakob Bornecrantz Signed-off-by: Stephen Brooks --- src/vmmouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmmouse.c b/src/vmmouse.c index 7778923..590144f 100644 --- a/src/vmmouse.c +++ b/src/vmmouse.c @@ -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(); -- cgit v1.2.3