Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package xf86-input-libinput for 
openSUSE:Factory checked in at 2023-08-30 10:19:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xf86-input-libinput (Old)
 and      /work/SRC/openSUSE:Factory/.xf86-input-libinput.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xf86-input-libinput"

Wed Aug 30 10:19:04 2023 rev:44 rq:1105974 version:1.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/xf86-input-libinput/xf86-input-libinput.changes  
2023-04-06 15:55:52.332272233 +0200
+++ 
/work/SRC/openSUSE:Factory/.xf86-input-libinput.new.1766/xf86-input-libinput.changes
        2023-08-30 10:21:16.845855774 +0200
@@ -1,0 +2,9 @@
+Fri Aug 25 16:29:15 UTC 2023 - Bjørn Lie <[email protected]>
+
+- Update to version 1.4.0:
+  * Tablets now have BTN_STYLUS3 mapped to X button 8 (i.e. the
+    first usable one after the LMR buttons).
+  * Tablet now have the left-handed property available so we can
+    actually change them to left-handed.
+
+-------------------------------------------------------------------

Old:
----
  xf86-input-libinput-1.3.0.tar.xz
  xf86-input-libinput-1.3.0.tar.xz.sig

New:
----
  xf86-input-libinput-1.4.0.tar.xz
  xf86-input-libinput-1.4.0.tar.xz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xf86-input-libinput.spec ++++++
--- /var/tmp/diff_new_pack.bp6oge/_old  2023-08-30 10:21:18.113901036 +0200
+++ /var/tmp/diff_new_pack.bp6oge/_new  2023-08-30 10:21:18.117901178 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           xf86-input-libinput
-Version:        1.3.0
+Version:        1.4.0
 Release:        0
 Summary:        Libinput driver for the Xorg X server
 License:        MIT

++++++ xf86-input-libinput-1.3.0.tar.xz -> xf86-input-libinput-1.4.0.tar.xz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xf86-input-libinput-1.3.0/ChangeLog 
new/xf86-input-libinput-1.4.0/ChangeLog
--- old/xf86-input-libinput-1.3.0/ChangeLog     2023-04-04 07:15:03.000000000 
+0200
+++ new/xf86-input-libinput-1.4.0/ChangeLog     2023-08-25 05:52:31.000000000 
+0200
@@ -1,3 +1,75 @@
+commit 46af622e9da610c775fab77b72f4c5e8fdb522de
+Author: Peter Hutterer <[email protected]>
+Date:   Fri Aug 25 13:51:18 2023 +1000
+
+    xf86-input-libinput 1.4.0
+    
+    Signed-off-by: Peter Hutterer <[email protected]>
+
+commit 5e20d16dd4060a785358fd0860cf5bffd5b23c09
+Author: Peter Hutterer <[email protected]>
+Date:   Mon Jul 10 09:04:40 2023 +1000
+
+    Don't try to enable a NULL device
+    
+    If there is no other libinput device in our list (and next is thus NULL),
+    skip the xf86AddEnabledDevice() call.
+    
+    Fixes #60
+
+commit 310db4206f2d2fc793e3044ee9886a20cc14ee86
+Author: Peter Hutterer <[email protected]>
+Date:   Mon Jul 3 13:30:24 2023 +1000
+
+    Don't run past the last element in the list
+    
+    If there is no (other) libinput device in the current device list, we'd
+    eventually end up with next == NULL, causing a segfault.
+    
+    Fixes #60
+
+commit 94a52a848801ff035ec4d1c604dac7c90708e562
+Author: Peter Hutterer <[email protected]>
+Date:   Thu Jun 15 15:00:54 2023 +1000
+
+    tablet: map BTN_STYLUS3 to button 8
+    
+    Buttons 4-7 are out of bounds for hysterical historical reasons.
+    Previously this button fell through to the default statement and
+    resulted in 8 + BTN_STYLUS3 - BTN_SIDE == 65 which is rather obviously
+    wrong.
+    
+    Instead, map it explicitly to what the fourth button would be mapped to
+    on other devices. This will now overlap with BTN_SIDE on devices that
+    both BTN_STYLUS3 *and* BTN_SIDE but those devices don't appear to exist
+    in the real world.
+    
+    Fixes #50
+    
+    Signed-off-by: Peter Hutterer <[email protected]>
+
+commit a4dfadee2ff9a53aaeaed1b18404138fcf7fdaca
+Author: Peter Hutterer <[email protected]>
+Date:   Thu Jun 8 13:45:07 2023 +1000
+
+    Initialize the left-handed property for tablet tools
+    
+    Signed-off-by: Peter Hutterer <[email protected]>
+
+commit 141aa867a6c4b0f4fc3b9a89a12080e01a59d7c9
+Author: Peter Hutterer <[email protected]>
+Date:   Thu Jun 8 13:38:13 2023 +1000
+
+    Change the capabilities to an enum
+    
+    Slightly nicer for debugging.
+
+commit 57b049d37668a8e9c69e552d5dc0cd3bbab9bb2a
+Author: Yinon Burgansky <[email protected]>
+Date:   Wed Apr 26 01:33:46 2023 +0300
+
+    Improve documentation of the custom acceleration profile
+
 commit 8cf533df3a7c7d602fbec8a675c3621682663d35
 Author: Peter Hutterer <[email protected]>
 Date:   Tue Apr 4 14:56:30 2023 +1000
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xf86-input-libinput-1.3.0/configure 
new/xf86-input-libinput-1.4.0/configure
--- old/xf86-input-libinput-1.3.0/configure     2023-04-04 07:14:58.000000000 
+0200
+++ new/xf86-input-libinput-1.4.0/configure     2023-08-25 05:52:28.000000000 
+0200
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.71 for xf86-input-libinput 1.3.0.
+# Generated by GNU Autoconf 2.71 for xf86-input-libinput 1.4.0.
 #
 # Report bugs to 
<https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/issues>.
 #
@@ -622,8 +622,8 @@
 # Identity of this package.
 PACKAGE_NAME='xf86-input-libinput'
 PACKAGE_TARNAME='xf86-input-libinput'
-PACKAGE_VERSION='1.3.0'
-PACKAGE_STRING='xf86-input-libinput 1.3.0'
+PACKAGE_VERSION='1.4.0'
+PACKAGE_STRING='xf86-input-libinput 1.4.0'
 
PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/issues'
 PACKAGE_URL=''
 
@@ -1398,7 +1398,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures xf86-input-libinput 1.3.0 to adapt to many kinds of 
systems.
+\`configure' configures xf86-input-libinput 1.4.0 to adapt to many kinds of 
systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1470,7 +1470,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of xf86-input-libinput 1.3.0:";;
+     short | recursive ) echo "Configuration of xf86-input-libinput 1.4.0:";;
    esac
   cat <<\_ACEOF
 
@@ -1608,7 +1608,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-xf86-input-libinput configure 1.3.0
+xf86-input-libinput configure 1.4.0
 generated by GNU Autoconf 2.71
 
 Copyright (C) 2021 Free Software Foundation, Inc.
@@ -1878,7 +1878,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by xf86-input-libinput $as_me 1.3.0, which was
+It was created by xf86-input-libinput $as_me 1.4.0, which was
 generated by GNU Autoconf 2.71.  Invocation command line was
 
   $ $0$ac_configure_args_raw
@@ -3153,7 +3153,7 @@
 
 # Define the identity of the package.
  PACKAGE='xf86-input-libinput'
- VERSION='1.3.0'
+ VERSION='1.4.0'
 
 
 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@@ -20147,7 +20147,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by xf86-input-libinput $as_me 1.3.0, which was
+This file was extended by xf86-input-libinput $as_me 1.4.0, which was
 generated by GNU Autoconf 2.71.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -20215,7 +20215,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config='$ac_cs_config_escaped'
 ac_cs_version="\\
-xf86-input-libinput config.status 1.3.0
+xf86-input-libinput config.status 1.4.0
 configured by $0, generated by GNU Autoconf 2.71,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xf86-input-libinput-1.3.0/configure.ac 
new/xf86-input-libinput-1.4.0/configure.ac
--- old/xf86-input-libinput-1.3.0/configure.ac  2023-04-04 07:14:54.000000000 
+0200
+++ new/xf86-input-libinput-1.4.0/configure.ac  2023-08-25 05:52:24.000000000 
+0200
@@ -23,7 +23,7 @@
 # Initialize Autoconf
 AC_PREREQ([2.60])
 AC_INIT([xf86-input-libinput],
-        [1.3.0],
+        [1.4.0],
         
[https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/issues],
         [xf86-input-libinput])
 AC_CONFIG_SRCDIR([Makefile.am])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xf86-input-libinput-1.3.0/man/libinput.man 
new/xf86-input-libinput-1.4.0/man/libinput.man
--- old/xf86-input-libinput-1.3.0/man/libinput.man      2023-04-04 
07:14:54.000000000 +0200
+++ new/xf86-input-libinput-1.4.0/man/libinput.man      2023-08-25 
05:52:24.000000000 +0200
@@ -54,23 +54,29 @@
 .BI "Option \*qAccelSpeed\*q \*q" float \*q
 Sets the pointer acceleration speed within the range [-1, 1].
 This only applies to the flat or adaptive profile.
-.BI "Option \*AccelPointsFallback\*q \*q" string \*q
-Sets the points of the Fallback acceleration function, (see the libinput 
documentation).
+.TP 7
+.BI "Option \*qAccelPointsFallback\*q \*q" string \*q
+.TQ
+.BI "Option \*qAccelPointsMotion\*q \*q" string \*q
+.TQ
+.BI "Option \*qAccelPointsScroll\*q \*q" string \*q
+Sets the points of the Fallback/Motion/Scroll acceleration functions.
 The string must be a space-separated list of floating point non-negative 
numbers, e.g.
 "0.0 1.0 2.4 2.5".
 This only applies to the custom profile.
-.BI "Option \*AccelStepFallback\*q \*q" float \*q
-Sets the step between the points of the Fallback acceleration function, (see 
the libinput documentation).
-When a step of 0.0 is provided, libinput's default Fallback acceleration 
function is used.
+See section
+.B CUSTOM ACCELERATION PROFILE
+.TP 7
+.BI "Option \*qAccelStepFallback\*q \*q" float \*q
+.TQ
+.BI "Option \*qAccelStepMotion\*q \*q" float \*q
+.TQ
+.BI "Option \*qAccelStepScroll\*q \*q" float \*q
+Sets the step between the points of the Fallback/Motion/Scroll acceleration 
functions.
+When a step of 0.0 is provided, libinput's Fallback acceleration function is 
used.
 This only applies to the custom profile.
-.BI "Option \*AccelPointsMotion\*q \*q" string \*q
-Equivalent to AccelPointsFallback but applies to the Motion acceleration 
function.
-.BI "Option \*AccelStepMotion\*q \*q" float \*q
-Equivalent to AccelStepFallback but applies to the Motion acceleration 
function.
-.BI "Option \*AccelPointsScroll\*q \*q" string \*q
-Equivalent to AccelPointsFallback but applies to the Scroll acceleration 
function.
-.BI "Option \*AccelStepScroll\*q \*q" float \*q
-Equivalent to AccelStepFallback but applies to the Scroll acceleration 
function.
+See section
+.B CUSTOM ACCELERATION PROFILE
 .TP 7
 .BI "Option \*qButtonMapping\*q \*q" string \*q
 Sets the logical button mapping for this device, see
@@ -247,15 +253,41 @@
 driver.
 .TP 7
 .BI "libinput Accel Profiles Available"
-2 boolean values (8 bit, 0 or 1), in order "adaptive", "flat".
+3 boolean values (8 bit, 0 or 1), in order "adaptive", "flat", "custom".
 Indicates which acceleration profiles are available on this device.
 .TP 7
 .BI "libinput Accel Profile Enabled"
-2 boolean values (8 bit, 0 or 1), in order "adaptive", "flat".
+3 boolean values (8 bit, 0 or 1), in order "adaptive", "flat", "custom".
 Indicates which acceleration profile is currently enabled on this device.
 .TP 7
 .BI "libinput Accel Speed"
-1 32-bit float value, defines the pointer speed. Value range -1, 1
+1 32-bit float value, defines the pointer speed. Value range -1, 1.
+This only applies to the flat or adaptive profile.
+.TP 7
+.BI "libinput Accel Custom Fallback Points"
+.TQ
+.BI "libinput Accel Custom Motion Points"
+.TQ
+.BI "libinput Accel Custom Scroll Points"
+A space-separated list of 32-bit floating point non-negative numbers, e.g.
+"0.0 1.0 2.4 2.5".
+Sets the points of the Fallback/Motion/Scroll acceleration functions.
+This only applies to the custom profile.
+See section
+.B CUSTOM ACCELERATION PROFILE
+.TP 7
+.BI "libinput Accel Custom Fallback Step"
+.TQ
+.BI "libinput Accel Custom Motion Step"
+.TQ
+.BI "libinput Accel Custom Scroll Step"
+1 32-bit float value, sets the step between the points of the
+Fallback/Motion/Scroll acceleration functions.
+When a step of 0.0 is provided, libinput's Fallback acceleration
+function is used.
+This only applies to the custom profile.
+See section
+.B CUSTOM ACCELERATION PROFILE
 .TP 7
 .BI "libinput Button Scrolling Button"
 1 32-bit value. Sets the button number to use for button scrolling. This
@@ -449,6 +481,35 @@
 option defines the amount of movement equivalent to one wheel click. For
 example, a value of 50 means the user has to move a finger by 50 pixels to
 generate one logical click event and each pixel is 1/50th of a wheel click.
+
+.SH CUSTOM ACCELERATION PROFILE
+The custom pointer acceleration profile gives users full control over the
+acceleration behavior at different speeds. libinput exposes an acceleration
+function f(x) where the x-axis is the device speed in device units per 
millisecond
+and the y-axis is the pointer speed.
+.PP
+The custom acceleration function is defined using n points which are spaced
+uniformly along the x-axis, starting from 0 and continuing in constant steps.
+Thus the points defining the custom function are:
+.EX
+(0 * step, f[0]), (1 * step, f[1]), ..., ((n-1) * step, f[n-1])
+.EE
+When a velocity value does not lie exactly on those points,
+a linear interpolation/extrapolation of the two closest points will be 
calculated.
+.PP
+There are 3 custom acceleration function, which are used for different 
movement types:
+.TS
+tab(;) allbox;
+l l l.
+Movement type; Uses; supported by
+Fallback; Catch-all default movement type; All devices
+Motion; Used for pointer motion; All devices
+Scroll; Used for scroll movement; Mouse, Touchpad
+.TE
+.PP
+See libinput library documentation of more details:
+https://wayland.freedesktop.org/libinput/doc/latest/pointer-acceleration.html#the-custom-acceleration-profile
+
 .SH BUGS
 This driver does not work with \fBOption \*qDevice\*q\fR set to an event
 node in \fI/dev/input/by-id\fR and \fI/dev/input/by-path\fR. This can be
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xf86-input-libinput-1.3.0/src/xf86libinput.c 
new/xf86-input-libinput-1.4.0/src/xf86libinput.c
--- old/xf86-input-libinput-1.3.0/src/xf86libinput.c    2023-04-04 
07:14:54.000000000 +0200
+++ new/xf86-input-libinput-1.4.0/src/xf86libinput.c    2023-08-25 
05:52:24.000000000 +0200
@@ -80,13 +80,15 @@
 #define TABLET_STRIP_AXIS_MAX 4096
 #define TABLET_RING_AXIS_MAX 71
 
-#define CAP_KEYBOARD   0x1
-#define CAP_POINTER    0x2
-#define CAP_TOUCH      0x4
-#define CAP_TABLET     0x8
-#define CAP_TABLET_TOOL        0x10
-#define CAP_TABLET_PAD 0x20
-#define CAP_GESTURE    0x40
+enum capabilities {
+       CAP_KEYBOARD = 0x1,
+       CAP_POINTER = 0x2,
+       CAP_TOUCH = 0x4,
+       CAP_TABLET = 0x8,
+       CAP_TABLET_TOOL = 0x10,
+       CAP_TABLET_PAD = 0x20,
+       CAP_GESTURE = 0x40,
+};
 
 #if HAVE_INPUTPROTO24
 #if ABI_XINPUT_VERSION >= SET_ABI_VERSION(24, 4)
@@ -254,6 +256,7 @@
        /* tablet button range */
        case BTN_STYLUS: button = 2; break;
        case BTN_STYLUS2: button = 3; break;
+       case BTN_STYLUS3: button = 8; break;
        default:
                button = 8 + b - BTN_SIDE;
                break;
@@ -730,7 +733,7 @@
 {
        InputInfoPtr pInfo = dev->public.devicePrivate;
 
-       if (!subdevice_has_capabilities(dev, CAP_POINTER|CAP_TABLET))
+       if (!subdevice_has_capabilities(dev, 
CAP_POINTER|CAP_TABLET|CAP_TABLET_TOOL))
                return;
 
        if (libinput_device_config_left_handed_is_available(device) &&
@@ -1497,12 +1500,13 @@
                return;
 
        next = xf86FirstLocalDevice();
-       while (next == pInfo || !is_libinput_device(next))
+       while (next && (next == pInfo || !is_libinput_device(next)))
                next = next->next;
 
        input_lock();
        xf86RemoveEnabledDevice(pInfo);
-       xf86AddEnabledDevice(next);
+       if (next)
+               xf86AddEnabledDevice(next);
        driver_context.registered_InputInfoPtr = next;
        input_unlock();
 }
@@ -5726,7 +5730,7 @@
 {
        BOOL left_handed = driver_data->options.left_handed;
 
-       if (!subdevice_has_capabilities(dev, CAP_POINTER|CAP_TABLET))
+       if (!subdevice_has_capabilities(dev, 
CAP_POINTER|CAP_TABLET|CAP_TABLET_TOOL))
                return;
 
        if (!libinput_device_config_left_handed_is_available(device) ||

Reply via email to