mirror of
https://github.com/X11Libre/xf86-input-vmmouse.git
synced 2026-03-24 01:34:05 +00:00
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:
committed by
Jakob Bornecrantz
parent
3a828d8767
commit
3c8ccf5eec
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user