Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libinput for openSUSE:Factory 
checked in at 2021-08-05 20:47:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libinput (Old)
 and      /work/SRC/openSUSE:Factory/.libinput.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libinput"

Thu Aug  5 20:47:50 2021 rev:102 rq:909940 version:1.18.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/libinput/libinput.changes        2021-06-04 
22:42:45.063075490 +0200
+++ /work/SRC/openSUSE:Factory/.libinput.new.1899/libinput.changes      
2021-08-05 20:48:07.879930134 +0200
@@ -1,0 +2,6 @@
+Tue Aug  3 00:05:19 UTC 2021 - Jan Engelhardt <jeng...@inai.de>
+
+- Update to release 1.18.1
+  * This release only adds device-specific quirks.
+
+-------------------------------------------------------------------

Old:
----
  libinput-1.18.0.tar.xz
  libinput-1.18.0.tar.xz.sig

New:
----
  libinput-1.18.1.tar.xz
  libinput-1.18.1.tar.xz.sig

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

Other differences:
------------------
++++++ libinput.spec ++++++
--- /var/tmp/diff_new_pack.jf5pdz/_old  2021-08-05 20:48:08.531929403 +0200
+++ /var/tmp/diff_new_pack.jf5pdz/_new  2021-08-05 20:48:08.535929398 +0200
@@ -37,7 +37,7 @@
 %define lname  libinput10
 %define pname  libinput
 Name:           libinput%{?xsuffix}
-Version:        1.18.0
+Version:        1.18.1
 Release:        0
 Summary:        Input device and event processing library
 License:        MIT

++++++ libinput-1.18.0.tar.xz -> libinput-1.18.1.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.18.0/doc/user/device-quirks.rst 
new/libinput-1.18.1/doc/user/device-quirks.rst
--- old/libinput-1.18.0/doc/user/device-quirks.rst      2021-06-02 
05:38:37.531749200 +0200
+++ new/libinput-1.18.1/doc/user/device-quirks.rst      2021-08-03 
00:58:22.171659500 +0200
@@ -190,3 +190,6 @@
 AttrPointingStickIntegration=internal|external
     Indicates the integration of the pointing stick. This is a string enum.
     Only needed for external pointing sticks. These are rare.
+AttrTabletSmoothing=1|0
+    Enables (1) or disables (0) input smoothing for tablet devices. Smoothing 
is enabled
+    by default, except on AES devices.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.18.0/meson.build 
new/libinput-1.18.1/meson.build
--- old/libinput-1.18.0/meson.build     2021-06-02 05:38:37.544749300 +0200
+++ new/libinput-1.18.1/meson.build     2021-08-03 00:58:22.178659400 +0200
@@ -1,5 +1,5 @@
 project('libinput', 'c',
-       version : '1.18.0',
+       version : '1.18.1',
        license : 'MIT/Expat',
        default_options : [ 'c_std=gnu99', 'warning_level=2' ],
        meson_version : '>= 0.47.0')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.18.0/quirks/50-framework.quirks 
new/libinput-1.18.1/quirks/50-framework.quirks
--- old/libinput-1.18.0/quirks/50-framework.quirks      1970-01-01 
01:00:00.000000000 +0100
+++ new/libinput-1.18.1/quirks/50-framework.quirks      2021-08-03 
00:58:22.179659400 +0200
@@ -0,0 +1,5 @@
+[Framework Laptop Touchpad]
+MatchName=PIXA3854:00 093A:0274 Touchpad
+MatchUdevType=touchpad
+MatchDMIModalias=dmi:*svnFramework:pnLaptop:*
+AttrEventCodeDisable=BTN_RIGHT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.18.0/quirks/50-system-chuwi.quirks 
new/libinput-1.18.1/quirks/50-system-chuwi.quirks
--- old/libinput-1.18.0/quirks/50-system-chuwi.quirks   1970-01-01 
01:00:00.000000000 +0100
+++ new/libinput-1.18.1/quirks/50-system-chuwi.quirks   2021-08-03 
00:58:22.179659400 +0200
@@ -0,0 +1,9 @@
+[Chuwi Gemibook]
+MatchName=HTIX5288:00 093A:1336 Touchpad
+MatchUdevType=touchpad
+AttrEventCodeDisable=BTN_RIGHT
+
+[Chuwi AeroBook Plus]
+MatchName=SYNA3602:01 093A:1336 Touchpad
+MatchUdevType=touchpad
+AttrEventCodeDisable=BTN_RIGHT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.18.0/quirks/50-system-dell.quirks 
new/libinput-1.18.1/quirks/50-system-dell.quirks
--- old/libinput-1.18.0/quirks/50-system-dell.quirks    2021-06-02 
05:38:37.548749400 +0200
+++ new/libinput-1.18.1/quirks/50-system-dell.quirks    2021-08-03 
00:58:22.179659400 +0200
@@ -82,6 +82,11 @@
 MatchDMIModalias=dmi:*svnDellInc.:pnLatitudeE7470*
 AttrTrackpointMultiplier=0.125
 
+[Latitude 7480 Touchpad]
+MatchName=DLL07A0*
+MatchDMIModalias=dmi:**bvnDellInc.:*:pnLatitude7480*
+AttrPressureRange=35:34
+
 [Latitude 7490 Trackpoint]
 MatchName=*Mouse
 MatchUdevType=pointingstick
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.18.0/quirks/50-system-huawei.quirks 
new/libinput-1.18.1/quirks/50-system-huawei.quirks
--- old/libinput-1.18.0/quirks/50-system-huawei.quirks  1970-01-01 
01:00:00.000000000 +0100
+++ new/libinput-1.18.1/quirks/50-system-huawei.quirks  2021-08-03 
00:58:22.179659400 +0200
@@ -0,0 +1,7 @@
+# Clickpad that announces BTN_RIGHT
+# https://bugzilla.redhat.com/show_bug.cgi?id=1972370
+[Huawei MateBook 2020 Touchpad]
+MatchName=ELAN2604:00 04F3:3114 Touchpad
+MatchUdevType=touchpad
+MatchDMIModalias=dmi:*svnHUAWEI:*pvrM1010*
+AttrEventCodeDisable=BTN_RIGHT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.18.0/quirks/50-system-lenovo.quirks 
new/libinput-1.18.1/quirks/50-system-lenovo.quirks
--- old/libinput-1.18.0/quirks/50-system-lenovo.quirks  2021-06-02 
05:38:37.549749400 +0200
+++ new/libinput-1.18.1/quirks/50-system-lenovo.quirks  2021-08-03 
00:58:22.179659400 +0200
@@ -144,6 +144,12 @@
 MatchProduct=0xCE37
 AttrEventCodeDisable=ABS_MT_PRESSURE;ABS_PRESSURE;
 
+[Lenovo Yoga C930 Tablet]
+MatchBus=i2c
+MatchVendor=0x056A
+MatchProduct=0x5196
+AttrTabletSmoothing=1
+
 # Lenovo Carbon X1 6th gen (RMI4 only, PS/2 is broken on this device,
 # sends bogus ABS_MT_TOOL_TYPE events for MT_TOOL_PALM
 [Lenovo Carbon X1 6th gen]
@@ -162,6 +168,11 @@
 MatchDMIModalias=dmi:*svnLENOVO:*pvrThinkPadX60Tablet:*
 ModelTabletModeNoSuspend=1
 
+[Lenovo X61 Tablet]
+MatchName=AT Translated Set 2 keyboard
+MatchDMIModalias=dmi:*svnLENOVO:*pvrThinkPadX61Tablet:*
+ModelTabletModeNoSuspend=1
+
 # Lenovo X220 Tablet special bezel buttons are associated to the
 # keyboard and would therefore mistakenly be deactivated as well.
 # See https://gitlab.freedesktop.org/libinput/libinput/issues/154
@@ -237,4 +248,10 @@
 MatchProduct=0x01E8
 AttrEventCodeDisable=ABS_MT_PRESSURE;ABS_PRESSURE;
 
+# Duet 7i tablet switch activated by folding keyboard cover, or removing it.
+# We must not disable volume rocker 'keyboard'.
+[Lenovo Duet 7i]
+MatchName=AT Raw Set 2 keyboard
+MatchDMIModalias=dmi:*svnLENOVO:*pvrYogaDuet713IML05:*
+ModelTabletModeNoSuspend=1
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.18.0/quirks/50-system-purism.quirks 
new/libinput-1.18.1/quirks/50-system-purism.quirks
--- old/libinput-1.18.0/quirks/50-system-purism.quirks  1970-01-01 
01:00:00.000000000 +0100
+++ new/libinput-1.18.1/quirks/50-system-purism.quirks  2021-08-03 
00:58:22.179659400 +0200
@@ -0,0 +1,7 @@
+# Clickpad that announces BTN_RIGHT
+# https://gitlab.freedesktop.org/libinput/libinput/-/issues/629
+[Librem 14v1 Touchpad]
+MatchName=HTIX5288:00 0911:5288 Touchpad
+MatchUdevType=touchpad
+MatchDMIModalias=dmi:*svnPurism:*pnLibrem14*
+AttrEventCodeDisable=BTN_RIGHT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.18.0/src/evdev-tablet.c 
new/libinput-1.18.1/src/evdev-tablet.c
--- old/libinput-1.18.0/src/evdev-tablet.c      2021-06-02 05:38:37.553749300 
+0200
+++ new/libinput-1.18.1/src/evdev-tablet.c      2021-08-03 00:58:22.181659500 
+0200
@@ -2344,18 +2344,17 @@
                                       tablet_change_to_left_handed);
 }
 
-static void
-tablet_init_smoothing(struct evdev_device *device,
-                     struct tablet_dispatch *tablet)
+static bool
+tablet_is_aes(struct evdev_device *device,
+             struct tablet_dispatch *tablet)
 {
-       size_t history_size = ARRAY_LENGTH(tablet->history.samples);
+       bool is_aes = false;
 #if HAVE_LIBWACOM
        const char *devnode;
        WacomDeviceDatabase *db;
        WacomDevice *libwacom_device = NULL;
        const int *stylus_ids;
        int nstyli;
-       bool is_aes = false;
        int vid = evdev_device_get_id_vendor(device);
 
        /* Wacom-specific check for whether smoothing is required:
@@ -2384,12 +2383,36 @@
                }
        }
 
-       if (is_aes)
-               history_size = 1;
-
        libwacom_destroy(libwacom_device);
+
 out:
 #endif
+       return is_aes;
+}
+
+static void
+tablet_init_smoothing(struct evdev_device *device,
+                     struct tablet_dispatch *tablet)
+{
+       size_t history_size = ARRAY_LENGTH(tablet->history.samples);
+       struct quirks_context *quirks = NULL;
+       struct quirks *q = NULL;
+       bool use_smoothing = true;
+
+       quirks = evdev_libinput_context(device)->quirks;
+       q = quirks_fetch_for_device(quirks, device->udev_device);
+
+       /* By default, always enable smoothing except on AES devices.
+        * AttrTabletSmoothing can override this, if necessary.
+        */
+       if (!q || !quirks_get_bool(q, QUIRK_ATTR_TABLET_SMOOTHING, 
&use_smoothing))
+               use_smoothing = !tablet_is_aes(device, tablet);
+
+       /* Setting the history size to 1 means we never do any actual 
smoothing. */
+       if (!use_smoothing)
+               history_size = 1;
+
+       quirks_unref(q);
        tablet->history.size = history_size;
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.18.0/src/quirks.c 
new/libinput-1.18.1/src/quirks.c
--- old/libinput-1.18.0/src/quirks.c    2021-06-02 05:38:37.556749300 +0200
+++ new/libinput-1.18.1/src/quirks.c    2021-08-03 00:58:22.185659400 +0200
@@ -280,6 +280,7 @@
        case QUIRK_ATTR_TRACKPOINT_MULTIPLIER:          return 
"AttrTrackpointMultiplier";
        case QUIRK_ATTR_THUMB_PRESSURE_THRESHOLD:       return 
"AttrThumbPressureThreshold";
        case QUIRK_ATTR_USE_VELOCITY_AVERAGING:         return 
"AttrUseVelocityAveraging";
+       case QUIRK_ATTR_TABLET_SMOOTHING:               return 
"AttrTabletSmoothing";
        case QUIRK_ATTR_THUMB_SIZE_THRESHOLD:           return 
"AttrThumbSizeThreshold";
        case QUIRK_ATTR_MSC_TIMESTAMP:                  return 
"AttrMscTimestamp";
        case QUIRK_ATTR_EVENT_CODE_DISABLE:             return 
"AttrEventCodeDisable";
@@ -790,6 +791,17 @@
                if (streq(value, "1"))
                        b = true;
                else if (streq(value, "0"))
+                       b = false;
+               else
+                       goto out;
+               p->type = PT_BOOL;
+               p->value.b = b;
+               rc = true;
+       } else if (streq(key, quirk_get_name(QUIRK_ATTR_TABLET_SMOOTHING))) {
+               p->id = QUIRK_ATTR_TABLET_SMOOTHING;
+               if (streq(value, "1"))
+                       b = true;
+               else if (streq(value, "0"))
                        b = false;
                else
                        goto out;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.18.0/src/quirks.h 
new/libinput-1.18.1/src/quirks.h
--- old/libinput-1.18.0/src/quirks.h    2021-06-02 05:38:37.556749300 +0200
+++ new/libinput-1.18.1/src/quirks.h    2021-08-03 00:58:22.185659400 +0200
@@ -103,6 +103,7 @@
        QUIRK_ATTR_TRACKPOINT_MULTIPLIER,
        QUIRK_ATTR_THUMB_PRESSURE_THRESHOLD,
        QUIRK_ATTR_USE_VELOCITY_AVERAGING,
+       QUIRK_ATTR_TABLET_SMOOTHING,
        QUIRK_ATTR_THUMB_SIZE_THRESHOLD,
        QUIRK_ATTR_MSC_TIMESTAMP,
        QUIRK_ATTR_EVENT_CODE_DISABLE,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.18.0/tools/shared.c 
new/libinput-1.18.1/tools/shared.c
--- old/libinput-1.18.0/tools/shared.c  2021-06-02 05:38:37.571749400 +0200
+++ new/libinput-1.18.1/tools/shared.c  2021-08-03 00:58:22.197659300 +0200
@@ -732,6 +732,7 @@
                                callback(userdata, buf);
                                break;
                        case QUIRK_ATTR_USE_VELOCITY_AVERAGING:
+                       case QUIRK_ATTR_TABLET_SMOOTHING:
                                snprintf(buf, sizeof(buf), "%s=1", name);
                                callback(userdata, buf);
                                break;

Reply via email to