aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-03-07 20:29:58 -0500
committerAdam Jackson <ajax@redhat.com>2008-03-07 20:29:58 -0500
commitad5bdcb50f511b1cd3bd0118d2b1f4fe58c4ab72 (patch)
treed592a2d260d127e6f530e663bb4ee0bded685876
parentSupport the new DIX motion history API (diff)
downloadxf86-input-evdev-ad5bdcb50f511b1cd3bd0118d2b1f4fe58c4ab72.tar.gz
xf86-input-evdev-ad5bdcb50f511b1cd3bd0118d2b1f4fe58c4ab72.tar.bz2
xf86-input-evdev-ad5bdcb50f511b1cd3bd0118d2b1f4fe58c4ab72.zip
Ignore button events above BTN_TASK for now.
-rw-r--r--src/evdev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c
index e21cea3..2a53ded 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -183,6 +183,9 @@ EvdevReadInput(InputInfoPtr pInfo)
break;
default:
+ if (ev.code > BTN_TASK && ev.code < KEY_OK)
+ break;
+
PostKbdEvent(pInfo, &ev, value);
}
break;