summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@fido2.homeip.net>2008-11-13 15:21:31 -0800
committerPhilip Langdale <philipl@fido2.homeip.net>2008-11-13 15:21:31 -0800
commitaea9dd5694e3b6bdeb704c18dc7930ba412ff259 (patch)
treed9ab5cb68f6f60b74f65f432bdb3a5abea907b80 /src
parent93f032b80b841e1b6beeff814e8d9519e485fdef (diff)
Don't flush buttons.
Apply equivalent of commit 6a03e8bd9699a33dabcdd2bbcf51a001ddfd5534 from xf86-input-mouse.
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;
}