xf86-input-libinput: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Sep 2 22:46:13 UTC 2021


 configure.ac       |   12 +++++
 src/xf86libinput.c |  123 +++++++++++++++++++++++++++++++++++++++++++----------
 2 files changed, 113 insertions(+), 22 deletions(-)

New commits:
commit beb94333e1450006942a7f0ee38bc2a2f5719238
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date:   Wed Jan 23 20:07:37 2019 +1000

    Use the new v120 API from libinput if available
    
    Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

commit ca9042c7f08f8f0dc214b9cc19f3243728ec8c4a
Author: José Expósito <jose.exposito89 at gmail.com>
Date:   Wed Aug 4 17:51:26 2021 +0200

    Get scroll source in the event handler
    
    Where libinput supports high-resolution scroll events, the scroll source
    is encoded in the event type.
    
    Get the scroll source in xf86libinput_handle_event to facilitate the
    migration.
    
    Refactor, no functional changes.
    
    Signed-off-by: José Expósito <jose.exposito89 at gmail.com>

commit bf8dc2e2ed0780b947eccfc9ac3694c518dee605
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date:   Wed Jan 23 09:01:24 2019 +1000

    Upgrade the default scroll distance to 120
    
    This is just a number, to be used as divider and shouldn't have any effect in
    correctly written clients. With the high-res scrolling coming up however, we
    have a few devices where the dist cannot be expressed as an integer fraction
    of 15, so let's up it to 120 because we know all hardware wheels have to be an
    integer fraction of that that, thanks to Microsoft's API requirements.
    
    For non-wheel scrolls we need to now map into the new range. Previously we
    just passed the scroll events on from the touchpad/button scrolling, meaning a
    vdist of 15 meant 15 "libinput pixels" of scrolling resulted in a logical
    wheel click. Now that we have 120 as vdist, we need to times the input data by
    8 to keep the same proportions.
    
    See 39b0bb4585106a56a51236d8e9843b2da8d745a5 for the previous revert.
    
    Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>



More information about the xorg-commit mailing list