summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Chapman <mike@very.puzzling.org>2009-01-09 19:07:10 +1100
committerPeter Hutterer <peter.hutterer@who-t.net>2009-01-13 10:52:24 +1000
commit0592d97fbb5a1241ee79397ce9203346d050a9f9 (patch)
tree746116063a8f782cc764c53c05d14bffd1274d4e
parent4dfd86b2201b2b19761a1abb3c580cecf0060224 (diff)
Disable middle mouse button emulation when a middle mouse button event is registered
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/emuMB.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emuMB.c b/src/emuMB.c
index e5a767a..028d27f 100644
--- a/src/emuMB.c
+++ b/src/emuMB.c
@@ -231,6 +231,11 @@ EvdevMBEmuFilterEvent(InputInfoPtr pInfo, int button, BOOL press)
if (!pEvdev->emulateMB.enabled)
return ret;
+ if (button == 2) {
+ EvdevMBEmuEnable(pInfo, FALSE);
+ return ret;
+ }
+
/* don't care about other buttons */
if (button != 1 && button != 3)
return ret;