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-10-23 23:13:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libinput (Old)
 and      /work/SRC/openSUSE:Factory/.libinput.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libinput"

Sat Oct 23 23:13:48 2021 rev:105 rq:926929 version:1.19.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/libinput/libinput.changes        2021-10-04 
18:38:58.177960513 +0200
+++ /work/SRC/openSUSE:Factory/.libinput.new.1890/libinput.changes      
2021-10-23 23:13:57.708980671 +0200
@@ -1,0 +2,14 @@
+Fri Oct 22 09:49:40 UTC 2021 - Paolo Stivanin <i...@paolostivanin.com>
+
+- Update to release 1.19.2:
+  * quirks: add quirk for GPD Win Max
+  * evdev: disable button scroll timeout for extra mouse buttons
+  * evdev: avoid usage of bogus BTN_FORWARD name
+  * gestures: avoid processing the last hold and
+    motion event twice
+  * quirks: Add quirk for StarLabs clickpads with two
+    phyisical buttons
+  * quirks: Update dmi for StarBook Mk V
+  * quirks: relax DMI modalias match for Purism Librem 14v1
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ libinput.spec ++++++
--- /var/tmp/diff_new_pack.4hWIti/_old  2021-10-23 23:13:58.292980956 +0200
+++ /var/tmp/diff_new_pack.4hWIti/_new  2021-10-23 23:13:58.296980958 +0200
@@ -37,7 +37,7 @@
 %define lname  libinput10
 %define pname  libinput
 Name:           libinput%{?xsuffix}
-Version:        1.19.1
+Version:        1.19.2
 Release:        0
 Summary:        Input device and event processing library
 License:        MIT
@@ -60,7 +60,7 @@
 BuildRequires:  python3-Sphinx
 BuildRequires:  python3-recommonmark
 %endif
-BuildRequires:  meson >= 0.41.0
+BuildRequires:  meson >= 0.49.0
 BuildRequires:  pkg-config
 %if %{with debug_gui}
 BuildRequires:  pkgconfig(cairo)

++++++ libinput-1.19.1.tar.xz -> libinput-1.19.2.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.19.1/meson.build 
new/libinput-1.19.2/meson.build
--- old/libinput-1.19.1/meson.build     2021-09-28 03:51:11.896798000 +0200
+++ new/libinput-1.19.2/meson.build     2021-10-21 06:28:30.332173600 +0200
@@ -1,5 +1,5 @@
 project('libinput', 'c',
-       version : '1.19.1',
+       version : '1.19.2',
        license : 'MIT/Expat',
        default_options : [ 'c_std=gnu99', 'warning_level=2' ],
        meson_version : '>= 0.49.0')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.19.1/quirks/30-vendor-starlabs.quirks 
new/libinput-1.19.2/quirks/30-vendor-starlabs.quirks
--- old/libinput-1.19.1/quirks/30-vendor-starlabs.quirks        1970-01-01 
01:00:00.000000000 +0100
+++ new/libinput-1.19.2/quirks/30-vendor-starlabs.quirks        2021-10-21 
06:28:30.333173500 +0200
@@ -0,0 +1,41 @@
+[StarBook Mk V]
+MatchName=STAR0001:00 093A:0255 Touchpad
+MatchUdevType=touchpad
+MatchDMIModalias=dmi:*svnStarLabs:pnStarBook*
+AttrEventCodeDisable=BTN_RIGHT
+
+[StarLabTop Mk IV - coreboot firmware]
+MatchName=STAR0001:00 093A:1336 Touchpad
+MatchUdevType=touchpad
+MatchDMIModalias=dmi:*svnStarLabs:pnLabTop*
+AttrEventCodeDisable=BTN_RIGHT
+
+[StarLabTop Mk IV - AMI firmware]
+MatchName=PCT1336:00 093A:1336 Touchpad
+MatchUdevType=touchpad
+MatchDMIModalias=dmi:*svnStarLabs:pnLabTop*
+AttrEventCodeDisable=BTN_RIGHT
+
+[StarLite Mk III - coreboot firmware]
+MatchName=STAR0001:00 093A:0255 Touchpad
+MatchUdevType=touchpad
+MatchDMIModalias=dmi:*svnStarLabs:pnLite*
+AttrEventCodeDisable=BTN_RIGHT
+
+[StarLite Mk III - AMI firmware]
+MatchName=HTIX5288:00 093A:0255 Touchpad
+MatchUdevType=touchpad
+MatchDMIModalias=dmi:*svnStarLabs:pnLite*
+AttrEventCodeDisable=BTN_RIGHT
+
+[StarLite Mk II - coreboot firmware]
+MatchName=STAR0001:00 0911:5288 Touchpad
+MatchUdevType=touchpad
+MatchDMIModalias=dmi:*svnStarLabs:pnLite*
+AttrEventCodeDisable=BTN_RIGHT
+
+[StarLite Mk II - AMI firmware]
+MatchName=ALPS0001:00 0911:5288 Touchpad
+MatchUdevType=touchpad
+MatchDMIModalias=dmi:*svnStarLabs:pnLite*
+AttrEventCodeDisable=BTN_RIGHT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.19.1/quirks/50-system-gpd.quirks 
new/libinput-1.19.2/quirks/50-system-gpd.quirks
--- old/libinput-1.19.1/quirks/50-system-gpd.quirks     1970-01-01 
01:00:00.000000000 +0100
+++ new/libinput-1.19.2/quirks/50-system-gpd.quirks     2021-10-21 
06:28:30.334173400 +0200
@@ -0,0 +1,5 @@
+[GPD Win Max - All versions]
+MatchName=HTIX5288:00 093A:0255 Touchpad
+MatchUdevType=touchpad
+MatchDMIModalias=dmi:*svnGPD:*pnG1619-*
+AttrEventCodeDisable=BTN_RIGHT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.19.1/quirks/50-system-purism.quirks 
new/libinput-1.19.2/quirks/50-system-purism.quirks
--- old/libinput-1.19.1/quirks/50-system-purism.quirks  2021-09-28 
03:51:11.897798000 +0200
+++ new/libinput-1.19.2/quirks/50-system-purism.quirks  2021-10-21 
06:28:30.334173400 +0200
@@ -3,5 +3,5 @@
 [Librem 14v1 Touchpad]
 MatchName=HTIX5288:00 0911:5288 Touchpad
 MatchUdevType=touchpad
-MatchDMIModalias=dmi:*svnPurism:*pnLibrem14*
+MatchDMIModalias=dmi:*svnPurism:*pn[Ll]ibrem*14:*
 AttrEventCodeDisable=BTN_RIGHT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.19.1/src/evdev-mt-touchpad-gestures.c 
new/libinput-1.19.2/src/evdev-mt-touchpad-gestures.c
--- old/libinput-1.19.1/src/evdev-mt-touchpad-gestures.c        2021-09-28 
03:51:11.898798000 +0200
+++ new/libinput-1.19.2/src/evdev-mt-touchpad-gestures.c        2021-10-21 
06:28:30.335173600 +0200
@@ -1256,12 +1256,12 @@
        if (tp->gesture.state == GESTURE_STATE_HOLD)
                tp_gesture_handle_state_hold(tp, time, ignore_motion);
 
-       if (tp->gesture.state == GESTURE_STATE_HOLD_AND_MOTION)
-               tp_gesture_handle_state_hold_and_pointer_motion(tp, time);
-
        if (tp->gesture.state == GESTURE_STATE_POINTER_MOTION)
                tp_gesture_handle_state_pointer_motion(tp, time);
 
+       if (tp->gesture.state == GESTURE_STATE_HOLD_AND_MOTION)
+               tp_gesture_handle_state_hold_and_pointer_motion(tp, time);
+
        if (tp->gesture.state == GESTURE_STATE_SCROLL)
                tp_gesture_handle_state_scroll(tp, time);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.19.1/src/evdev.c 
new/libinput-1.19.2/src/evdev.c
--- old/libinput-1.19.1/src/evdev.c     2021-09-28 03:51:11.900797800 +0200
+++ new/libinput-1.19.2/src/evdev.c     2021-10-21 06:28:30.337173500 +0200
@@ -230,26 +230,35 @@
        }
 
        if (is_press) {
-               enum timer_flags flags = TIMER_FLAG_NONE;
+               if (device->scroll.button < BTN_MOUSE + 5) {
+                       /* For mouse buttons 1-5 (0x110 to 0x114) we apply a 
timeout before scrolling
+                        * since the button could also be used for regular 
clicking. */
+                       enum timer_flags flags = TIMER_FLAG_NONE;
 
-               device->scroll.button_scroll_state = BUTTONSCROLL_BUTTON_DOWN;
+                       device->scroll.button_scroll_state = 
BUTTONSCROLL_BUTTON_DOWN;
 
-               /* Special case: if middle button emulation is enabled and
-                * our scroll button is the left or right button, we only
-                * get here *after* the middle button timeout has expired
-                * for that button press. The time passed is the button-down
-                * time though (which is in the past), so we have to allow
-                * for a negative timer to be set.
-                */
-               if (device->middlebutton.enabled &&
-                   (device->scroll.button == BTN_LEFT ||
-                    device->scroll.button == BTN_RIGHT)) {
-                       flags = TIMER_FLAG_ALLOW_NEGATIVE;
-               }
+                       /* Special case: if middle button emulation is enabled 
and
+                        * our scroll button is the left or right button, we 
only
+                        * get here *after* the middle button timeout has 
expired
+                        * for that button press. The time passed is the 
button-down
+                        * time though (which is in the past), so we have to 
allow
+                        * for a negative timer to be set.
+                        */
+                       if (device->middlebutton.enabled &&
+                               (device->scroll.button == BTN_LEFT ||
+                               device->scroll.button == BTN_RIGHT)) {
+                               flags = TIMER_FLAG_ALLOW_NEGATIVE;
+                       }
 
-               libinput_timer_set_flags(&device->scroll.timer,
-                                        time + DEFAULT_BUTTON_SCROLL_TIMEOUT,
-                                        flags);
+                       libinput_timer_set_flags(&device->scroll.timer,
+                                               time + 
DEFAULT_BUTTON_SCROLL_TIMEOUT,
+                                               flags);
+               } else {
+                       /* For extra mouse buttons numbered 6 or more (0x115+) 
we assume it is
+                        * dedicated exclusively to scrolling, so we don't 
apply the timeout
+                        * in order to provide immediate scrolling 
responsiveness. */
+                       device->scroll.button_scroll_state = BUTTONSCROLL_READY;
+               }
                device->scroll.button_down_time = time;
                evdev_log_debug(device, "btnscroll: down\n");
        } else {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libinput-1.19.1/test/test-log.c 
new/libinput-1.19.2/test/test-log.c
--- old/libinput-1.19.1/test/test-log.c 2021-09-28 03:51:11.908798000 +0200
+++ new/libinput-1.19.2/test/test-log.c 2021-10-21 06:28:30.347173500 +0200
@@ -47,17 +47,34 @@
        litest_assert_notnull(format);
 }
 
+
+static int open_restricted(const char *path, int flags, void *data)
+{
+       int fd;
+       fd = open(path, flags);
+       return fd < 0 ? -errno : fd;
+}
+static void close_restricted(int fd, void *data)
+{
+       close(fd);
+}
+
+static const struct libinput_interface simple_interface = {
+       .open_restricted = open_restricted,
+       .close_restricted = close_restricted,
+};
+
 START_TEST(log_default_priority)
 {
        enum libinput_log_priority pri;
        struct libinput *li;
 
-       li = litest_create_context();
+       li = libinput_path_create_context(&simple_interface, NULL);
        pri = libinput_log_get_priority(li);
 
        ck_assert_int_eq(pri, LIBINPUT_LOG_PRIORITY_ERROR);
 
-       litest_destroy_context(li);
+       libinput_unref(li);
 }
 END_TEST
 

Reply via email to