Commit 7aa32760 authored by Peter Hutterer's avatar Peter Hutterer

eventcomm: ignore key repeat events

Usually doesn't happen, but the evtest output in
https://bugs.freedesktop.org/show_bug.cgi?id=90392
actually has repeat events for the button. Ignore them if they happen.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent fc9f490a
......@@ -732,6 +732,10 @@ EventReadHwState(InputInfoPtr pInfo,
}
break;
case EV_KEY:
/* ignore hw repeat events */
if (ev.value > 1)
break;
v = (ev.value ? TRUE : FALSE);
switch (ev.code) {
case BTN_LEFT:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment