summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vmmouse.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/vmmouse.c b/src/vmmouse.c
index 84b27fb..9284c0e 100644
--- a/src/vmmouse.c
+++ b/src/vmmouse.c
@@ -603,8 +603,7 @@ VMMousePostEvent(InputInfoPtr pInfo, int buttons, int dx, int dy, int dz, int dw
*
* FlushButtons --
*
- * FlushButtons -- send button up events for sanity. It is called
- * during DEVICE_ON in VMMouseDeviceControl
+ * FlushButtons -- reset button states.
*
* Results:
* None
@@ -618,18 +617,8 @@ VMMousePostEvent(InputInfoPtr pInfo, int buttons, int dx, int dy, int dz, int dw
static void
FlushButtons(MouseDevPtr pMse)
{
-
- /* If no button down is pending xf86PostButtonEvent()
- * will discard them. So we are on the safe side. */
-
- int i, blocked;
-
pMse->lastButtons = 0;
-
- blocked = xf86BlockSIGIO ();
- for (i = 1; i <= 5; i++)
- xf86PostButtonEvent(pMse->device,0,i,0,0,0);
- xf86UnblockSIGIO (blocked);
+ pMse->lastMappedButtons = 0;
}