xf86-input-libinput: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jan 25 04:39:10 UTC 2019


 src/xf86libinput.c |   74 +++++++++++++++++++++++++++++++----------------------
 1 file changed, 44 insertions(+), 30 deletions(-)

New commits:
commit e7eafa199e9e60c15014a9d72d14efcbbf8e44ca
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date:   Mon Jan 21 15:21:45 2019 +1000

    Handle scroll wheel events with a discrete of 0
    
    The driver currently assumes that any wheel event has a non-zero discrete
    value of 1. This is incorrect, it just hasn't triggered yet with any device.
    
    With the hi-res scroll patches in place in the kernel and libinput, we may get
    wheel events with a discrete value of 0. We assume that if this ever happens,
    the device has some sensible click angle set so all we need to do is ignore
    the discrete 0 events and wait for the first discrete event to come.
    
    Also add an explanatory comment too to make it clear the calculation is only
    done once.
    
    Fixes #19
    
    Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

commit d13ab268bdf6eb589022c58ddc87c1211b49ac4c
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date:   Mon Jan 21 13:19:11 2019 +1000

    Return the wheel scroll value instead of just the fraction
    
    This is prep work for the hi-res work but right now, no real functional
    changes. It does however fix a bug where we used the vertial scroll dist for
    the horizontal wheel as well.
    
    Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

commit 347c78387eb3fbadcd582f0ea51bb083962a728f
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date:   Mon Jan 21 13:05:23 2019 +1000

    Split the scroll axis details up for easier extension
    
    If we need more per-axis fields, it's easier to add this way.
    
    Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>



More information about the xorg-commit mailing list