Bug 84445

Summary: Wheels cause duplicate events when in same frame as ABS events
Product: xorg Reporter: Peter Hutterer <peter.hutterer>
Component: Input/evdevAssignee: Peter Hutterer <peter.hutterer>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: eric.brunet, peter.hutterer
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 82250    

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.