summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZephaniah E. Hull <warp@aehallh.com>2006-02-17 01:17:41 +0000
committerZephaniah E. Hull <warp@aehallh.com>2006-02-17 01:17:41 +0000
commit28ee08ef0810ad48c612280838be3e952c41971d (patch)
tree64905ec379e3a20d61e34a14d96f82b5dbff49b3 /src
parente7d4e6b11eb4cc026e91fd561fda24d9cf19adc4 (diff)
Bugzilla #5914 <https://bugs.freedesktop.org/show_bug.cgi?id=5914> Stupid
little bug, properly handle wheels on 3 button mice.
Diffstat (limited to 'src')
-rw-r--r--src/evdev_btn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev_btn.c b/src/evdev_btn.c
index 71d0214..cc279ff 100644
--- a/src/evdev_btn.c
+++ b/src/evdev_btn.c
@@ -167,7 +167,7 @@ EvdevBtnCalcRemap (InputInfoPtr pInfo)
pEvdev->state.buttonMap[2] = base;
}
- for (j = 0; j < REL_MAX; j++) {
+ for (i = 0; i < REL_MAX; i++) {
if (pEvdev->state.relToBtnMap[i][0] > pEvdev->state.buttons)
pEvdev->state.buttons = pEvdev->state.relToBtnMap[i][0];
if (pEvdev->state.relToBtnMap[i][1] > pEvdev->state.buttons)