Bug 84445 - Wheels cause duplicate events when in same frame as ABS events
Summary: Wheels cause duplicate events when in same frame as ABS events
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Input/evdev (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Peter Hutterer
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 82250
  Show dependency treegraph
 
Reported: 2014-09-29 03:10 UTC by Peter Hutterer
Modified: 2015-03-27 01:34 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Peter Hutterer 2014-09-29 03:10:02 UTC
See XIT test EvdevMixedDeviceTest.AbsXYAndRelScroll, needs a device with ABS_X, ABS_Y, REL_WHEEL and BTN_LEFT (for evdev, not used).

If the REL_WHEEL event is in the same EV_SYN frame as an ABS_* event, evdev sets rel_queued and abs_queued both to 1 and submits the same valuator mask twice to the server. This can cause duplicate events.
Comment 1 Peter Hutterer 2015-03-27 01:34:43 UTC
commit e0e2587a95afaeb25ad73bb8b27488e79d1fe02e
Author: Éric Brunet <Eric.Brunet@lps.ens.fr>
Date:   Tue Sep 30 14:27:20 2014 +0200

    Split pEvdev->vals into pEvdev->abs_vals and pEvdev->rel_vals


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.