summaryrefslogtreecommitdiff
path: root/src/vmmouse.c
diff options
context:
space:
mode:
authorStephen Brooks <nightbikeman@gmail.com>2011-05-18 22:48:34 +0100
committerJakob Bornecrantz <jakob@vmware.com>2012-08-07 00:36:19 +0200
commit3c8ccf5eec3177ed8976ed5ff04795a20287d2d8 (patch)
tree8720916a57063487fae239ea42c43a452ea9c609 /src/vmmouse.c
parent3a828d876772d05577b9372e8f6dc068794f4704 (diff)
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>
Diffstat (limited to 'src/vmmouse.c')
-rw-r--r--src/vmmouse.c2
1 files changed, 1 insertions, 1 deletions
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();