diff options
author | Michael Chapman <mike@very.puzzling.org> | 2009-01-09 19:07:10 +1100 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-01-13 10:52:24 +1000 |
commit | 0592d97fbb5a1241ee79397ce9203346d050a9f9 (patch) | |
tree | 746116063a8f782cc764c53c05d14bffd1274d4e /src | |
parent | 4dfd86b2201b2b19761a1abb3c580cecf0060224 (diff) |
Disable middle mouse button emulation when a middle mouse button event is registered
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/emuMB.c | 5 |
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; |