[arch-commits] Commit in xf86-input-libinput/repos (8 files)

Laurent Carlier lcarlier at archlinux.org
Fri Feb 27 13:39:02 UTC 2015


    Date: Friday, February 27, 2015 @ 14:39:01
  Author: lcarlier
Revision: 232075

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  xf86-input-libinput/repos/testing-i686/
  xf86-input-libinput/repos/testing-i686/90-libinput.conf
    (from rev 232074, xf86-input-libinput/trunk/90-libinput.conf)
  xf86-input-libinput/repos/testing-i686/PKGBUILD
    (from rev 232074, xf86-input-libinput/trunk/PKGBUILD)
  xf86-input-libinput/repos/testing-i686/git-fixes.patch
    (from rev 232074, xf86-input-libinput/trunk/git-fixes.patch)
  xf86-input-libinput/repos/testing-x86_64/
  xf86-input-libinput/repos/testing-x86_64/90-libinput.conf
    (from rev 232074, xf86-input-libinput/trunk/90-libinput.conf)
  xf86-input-libinput/repos/testing-x86_64/PKGBUILD
    (from rev 232074, xf86-input-libinput/trunk/PKGBUILD)
  xf86-input-libinput/repos/testing-x86_64/git-fixes.patch
    (from rev 232074, xf86-input-libinput/trunk/git-fixes.patch)

---------------------------------+
 testing-i686/90-libinput.conf   |   30 ++++++
 testing-i686/PKGBUILD           |   48 +++++++++
 testing-i686/git-fixes.patch    |  187 ++++++++++++++++++++++++++++++++++++++
 testing-x86_64/90-libinput.conf |   30 ++++++
 testing-x86_64/PKGBUILD         |   48 +++++++++
 testing-x86_64/git-fixes.patch  |  187 ++++++++++++++++++++++++++++++++++++++
 6 files changed, 530 insertions(+)

Copied: xf86-input-libinput/repos/testing-i686/90-libinput.conf (from rev 232074, xf86-input-libinput/trunk/90-libinput.conf)
===================================================================
--- testing-i686/90-libinput.conf	                        (rev 0)
+++ testing-i686/90-libinput.conf	2015-02-27 13:39:01 UTC (rev 232075)
@@ -0,0 +1,30 @@
+# Match on all types of devices but tablet devices and joysticks
+
+Section "InputClass"
+        Identifier "libinput pointer catchall"
+        MatchIsPointer "on"
+        MatchDevicePath "/dev/input/event*"
+        Driver "libinput"
+EndSection
+
+Section "InputClass"
+        Identifier "libinput keyboard catchall"
+        MatchIsKeyboard "on"
+        MatchDevicePath "/dev/input/event*"
+        Driver "libinput"
+EndSection
+
+Section "InputClass"
+        Identifier "libinput touchpad catchall"
+        MatchIsTouchpad "on"
+        MatchDevicePath "/dev/input/event*"
+        Driver "libinput"
+EndSection
+
+Section "InputClass"
+        Identifier "libinput touchscreen catchall"
+        MatchIsTouchscreen "on"
+        MatchDevicePath "/dev/input/event*"
+        Driver "libinput"
+EndSection
+

Copied: xf86-input-libinput/repos/testing-i686/PKGBUILD (from rev 232074, xf86-input-libinput/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2015-02-27 13:39:01 UTC (rev 232075)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+
+pkgname=xf86-input-libinput
+pkgver=0.7.0
+pkgrel=2
+pkgdesc="Generic input driver for the X.Org server based on libinput"
+arch=('i686' 'x86_64')
+license=('custom')
+url="http://xorg.freedesktop.org/"
+depends=('libinput')
+makedepends=('xorg-server-devel' 'X-ABI-XINPUT_VERSION=21' 'libxi' 'libx11' 'resourceproto' 'scrnsaverproto')
+conflicts=('xorg-server<1.16' 'X-ABI-XINPUT_VERSION<21' 'X-ABI-XINPUT_VERSION>=22')
+groups=('xorg-drivers' 'xorg')
+source=(http://xorg.freedesktop.org/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2{,.sig}
+        90-libinput.conf
+        git-fixes.patch)
+sha256sums=('9392129d9598ddc108faa74e8eb311dc59b81c083da0c4804210ed2a7b4abb84'
+            'SKIP'
+            'd4a728caadb7924852dcdc0da4de950c6fb9ebd8999d4e3af3d0baaa51cd0e75'
+            '5e3789c3b60706c22cab2a6963465343b4ae351d387067e6b19ad067a69125d5')
+validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office at who-t.net>
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+
+  # FS#43926 + another upstream fix
+  patch -Np1 -i ../git-fixes.patch
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+
+  ./configure --prefix=/usr --disable-static
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+
+  make DESTDIR="${pkgdir}" install
+
+  install -m755 -d "${pkgdir}/usr/share/X11/xorg.conf.d"
+  install -m644 ../90-libinput.conf "${pkgdir}/usr/share/X11/xorg.conf.d/"
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
+

Copied: xf86-input-libinput/repos/testing-i686/git-fixes.patch (from rev 232074, xf86-input-libinput/trunk/git-fixes.patch)
===================================================================
--- testing-i686/git-fixes.patch	                        (rev 0)
+++ testing-i686/git-fixes.patch	2015-02-27 13:39:01 UTC (rev 232075)
@@ -0,0 +1,187 @@
+From 2600a4a352185f7d4d828f7d223628e4bb0f2aa3 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer at who-t.net>
+Date: Wed, 25 Feb 2015 07:48:18 +1000
+Subject: Fix off-by-one error in buttonmap initialization (#89300)
+
+X.Org Bug 89300 <http://bugs.freedesktop.org/show_bug.cgi?id=89300>
+
+Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
+
+diff --git a/src/libinput.c b/src/libinput.c
+index 9613fbd..eee3bfb 100644
+--- a/src/libinput.c
++++ b/src/libinput.c
+@@ -372,7 +372,7 @@ init_button_map(unsigned char *btnmap, size_t size)
+ 	int i;
+ 
+ 	memset(btnmap, 0, size);
+-	for (i = 0; i <= size; i++)
++	for (i = 0; i < size; i++)
+ 		btnmap[i] = i;
+ }
+ 
+-- 
+cgit v0.10.2
+From 98ae01b9ae8616d3c2047f5510205aa4e3bc52b5 Mon Sep 17 00:00:00 2001
+From: Olivier Fourdan <ofourdan at redhat.com>
+Date: Wed, 25 Feb 2015 11:49:19 +0100
+Subject: Ignore property changes if the device is disabled
+
+If the device is present but disabled, the server will still call into
+SetProperty. We don't have a libinput device to back it up in this case,
+causing a null-pointer dereference.
+
+This is a bug specific to this driver that cannot easily be fixed. All
+other drivers can handle property changes even if no device is present,
+here we rely on libinput to make the final call. But without a device
+path/fd we don't have a libinput reference.
+
+The protocol doesn't mention this case, so let's pick BadMatch as the
+least wrong error code. And put a warning in the log, this needs a
+workaround in the client.
+
+Also, if we get here and the device is on, then that's definitely a bug,
+warn about that.
+
+https://bugs.freedesktop.org/show_bug.cgi?id=89296
+
+Signed-off-by: Olivier Fourdan <ofourdan at redhat.com>
+Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
+
+diff --git a/src/libinput.c b/src/libinput.c
+index eee3bfb..0ab240c 100644
+--- a/src/libinput.c
++++ b/src/libinput.c
+@@ -1293,6 +1293,26 @@ static Atom prop_float;
+ static Atom prop_device;
+ static Atom prop_product_id;
+ 
++static inline BOOL
++xf86libinput_check_device (DeviceIntPtr dev,
++			   Atom atom)
++{
++	InputInfoPtr pInfo = dev->public.devicePrivate;
++	struct xf86libinput *driver_data = pInfo->private;
++	struct libinput_device *device = driver_data->device;
++
++	if (device == NULL) {
++		BUG_WARN(dev->public.on);
++		xf86IDrvMsg(pInfo, X_INFO,
++			    "SetProperty on %d called but device is disabled.\n"
++			    "This driver cannot change properties on a disabled device\n",
++			    atom);
++		return FALSE;
++	}
++
++	return TRUE;
++}
++
+ static inline int
+ LibinputSetPropertyTap(DeviceIntPtr dev,
+                        Atom atom,
+@@ -1312,6 +1332,9 @@ LibinputSetPropertyTap(DeviceIntPtr dev,
+ 		if (*data != 0 && *data != 1)
+ 			return BadValue;
+ 
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
++
+ 		if (libinput_device_config_tap_get_finger_count(device) == 0)
+ 			return BadMatch;
+ 	} else {
+@@ -1343,6 +1366,9 @@ LibinputSetPropertyCalibration(DeviceIntPtr dev,
+ 		    data[8] != 1)
+ 			return BadValue;
+ 
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
++
+ 		if (!libinput_device_config_calibration_has_matrix(device))
+ 			return BadMatch;
+ 	} else {
+@@ -1374,6 +1400,9 @@ LibinputSetPropertyAccel(DeviceIntPtr dev,
+ 		if (*data < -1 || *data > 1)
+ 			return BadValue;
+ 
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
++
+ 		if (libinput_device_config_accel_is_available(device) == 0)
+ 			return BadMatch;
+ 	} else {
+@@ -1403,6 +1432,9 @@ LibinputSetPropertyNaturalScroll(DeviceIntPtr dev,
+ 		if (*data != 0 && *data != 1)
+ 			return BadValue;
+ 
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
++
+ 		if (libinput_device_config_scroll_has_natural_scroll(device) == 0)
+ 			return BadMatch;
+ 	} else {
+@@ -1435,9 +1467,12 @@ LibinputSetPropertySendEvents(DeviceIntPtr dev,
+ 		modes |= LIBINPUT_CONFIG_SEND_EVENTS_DISABLED_ON_EXTERNAL_MOUSE;
+ 
+ 	if (checkonly) {
+-		uint32_t supported =
+-			libinput_device_config_send_events_get_modes(device);
++		uint32_t supported;
++
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
+ 
++		supported = libinput_device_config_send_events_get_modes(device);
+ 		if ((modes | supported) != supported)
+ 			return BadValue;
+ 
+@@ -1465,9 +1500,13 @@ LibinputSetPropertyLeftHanded(DeviceIntPtr dev,
+ 	data = (BOOL*)val->data;
+ 
+ 	if (checkonly) {
+-		int supported = libinput_device_config_left_handed_is_available(device);
++		int supported;
+ 		int left_handed = *data;
+ 
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
++
++		supported = libinput_device_config_left_handed_is_available(device);
+ 		if (!supported && left_handed)
+ 			return BadValue;
+ 	} else {
+@@ -1502,11 +1541,15 @@ LibinputSetPropertyScrollMethods(DeviceIntPtr dev,
+ 		modes |= LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN;
+ 
+ 	if (checkonly) {
+-		uint32_t supported = libinput_device_config_scroll_get_methods(device);
++		uint32_t supported;
+ 
+ 		if (__builtin_popcount(modes) > 1)
+ 			return BadValue;
+ 
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
++
++		supported = libinput_device_config_scroll_get_methods(device);
+ 		if (modes && (modes & supported) == 0)
+ 			return BadValue;
+ 	} else {
+@@ -1534,9 +1577,13 @@ LibinputSetPropertyScrollButton(DeviceIntPtr dev,
+ 
+ 	if (checkonly) {
+ 		uint32_t button = *data;
+-		uint32_t supported = libinput_device_has_button(device,
+-								btn_xorg2linux(button));
++		uint32_t supported;
++
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
+ 
++		supported = libinput_device_has_button(device,
++						       btn_xorg2linux(button));
+ 		if (button && !supported)
+ 			return BadValue;
+ 	} else {
+-- 
+cgit v0.10.2
+

Copied: xf86-input-libinput/repos/testing-x86_64/90-libinput.conf (from rev 232074, xf86-input-libinput/trunk/90-libinput.conf)
===================================================================
--- testing-x86_64/90-libinput.conf	                        (rev 0)
+++ testing-x86_64/90-libinput.conf	2015-02-27 13:39:01 UTC (rev 232075)
@@ -0,0 +1,30 @@
+# Match on all types of devices but tablet devices and joysticks
+
+Section "InputClass"
+        Identifier "libinput pointer catchall"
+        MatchIsPointer "on"
+        MatchDevicePath "/dev/input/event*"
+        Driver "libinput"
+EndSection
+
+Section "InputClass"
+        Identifier "libinput keyboard catchall"
+        MatchIsKeyboard "on"
+        MatchDevicePath "/dev/input/event*"
+        Driver "libinput"
+EndSection
+
+Section "InputClass"
+        Identifier "libinput touchpad catchall"
+        MatchIsTouchpad "on"
+        MatchDevicePath "/dev/input/event*"
+        Driver "libinput"
+EndSection
+
+Section "InputClass"
+        Identifier "libinput touchscreen catchall"
+        MatchIsTouchscreen "on"
+        MatchDevicePath "/dev/input/event*"
+        Driver "libinput"
+EndSection
+

Copied: xf86-input-libinput/repos/testing-x86_64/PKGBUILD (from rev 232074, xf86-input-libinput/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2015-02-27 13:39:01 UTC (rev 232075)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+
+pkgname=xf86-input-libinput
+pkgver=0.7.0
+pkgrel=2
+pkgdesc="Generic input driver for the X.Org server based on libinput"
+arch=('i686' 'x86_64')
+license=('custom')
+url="http://xorg.freedesktop.org/"
+depends=('libinput')
+makedepends=('xorg-server-devel' 'X-ABI-XINPUT_VERSION=21' 'libxi' 'libx11' 'resourceproto' 'scrnsaverproto')
+conflicts=('xorg-server<1.16' 'X-ABI-XINPUT_VERSION<21' 'X-ABI-XINPUT_VERSION>=22')
+groups=('xorg-drivers' 'xorg')
+source=(http://xorg.freedesktop.org/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2{,.sig}
+        90-libinput.conf
+        git-fixes.patch)
+sha256sums=('9392129d9598ddc108faa74e8eb311dc59b81c083da0c4804210ed2a7b4abb84'
+            'SKIP'
+            'd4a728caadb7924852dcdc0da4de950c6fb9ebd8999d4e3af3d0baaa51cd0e75'
+            '5e3789c3b60706c22cab2a6963465343b4ae351d387067e6b19ad067a69125d5')
+validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office at who-t.net>
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+
+  # FS#43926 + another upstream fix
+  patch -Np1 -i ../git-fixes.patch
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+
+  ./configure --prefix=/usr --disable-static
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+
+  make DESTDIR="${pkgdir}" install
+
+  install -m755 -d "${pkgdir}/usr/share/X11/xorg.conf.d"
+  install -m644 ../90-libinput.conf "${pkgdir}/usr/share/X11/xorg.conf.d/"
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
+

Copied: xf86-input-libinput/repos/testing-x86_64/git-fixes.patch (from rev 232074, xf86-input-libinput/trunk/git-fixes.patch)
===================================================================
--- testing-x86_64/git-fixes.patch	                        (rev 0)
+++ testing-x86_64/git-fixes.patch	2015-02-27 13:39:01 UTC (rev 232075)
@@ -0,0 +1,187 @@
+From 2600a4a352185f7d4d828f7d223628e4bb0f2aa3 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer at who-t.net>
+Date: Wed, 25 Feb 2015 07:48:18 +1000
+Subject: Fix off-by-one error in buttonmap initialization (#89300)
+
+X.Org Bug 89300 <http://bugs.freedesktop.org/show_bug.cgi?id=89300>
+
+Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
+
+diff --git a/src/libinput.c b/src/libinput.c
+index 9613fbd..eee3bfb 100644
+--- a/src/libinput.c
++++ b/src/libinput.c
+@@ -372,7 +372,7 @@ init_button_map(unsigned char *btnmap, size_t size)
+ 	int i;
+ 
+ 	memset(btnmap, 0, size);
+-	for (i = 0; i <= size; i++)
++	for (i = 0; i < size; i++)
+ 		btnmap[i] = i;
+ }
+ 
+-- 
+cgit v0.10.2
+From 98ae01b9ae8616d3c2047f5510205aa4e3bc52b5 Mon Sep 17 00:00:00 2001
+From: Olivier Fourdan <ofourdan at redhat.com>
+Date: Wed, 25 Feb 2015 11:49:19 +0100
+Subject: Ignore property changes if the device is disabled
+
+If the device is present but disabled, the server will still call into
+SetProperty. We don't have a libinput device to back it up in this case,
+causing a null-pointer dereference.
+
+This is a bug specific to this driver that cannot easily be fixed. All
+other drivers can handle property changes even if no device is present,
+here we rely on libinput to make the final call. But without a device
+path/fd we don't have a libinput reference.
+
+The protocol doesn't mention this case, so let's pick BadMatch as the
+least wrong error code. And put a warning in the log, this needs a
+workaround in the client.
+
+Also, if we get here and the device is on, then that's definitely a bug,
+warn about that.
+
+https://bugs.freedesktop.org/show_bug.cgi?id=89296
+
+Signed-off-by: Olivier Fourdan <ofourdan at redhat.com>
+Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
+
+diff --git a/src/libinput.c b/src/libinput.c
+index eee3bfb..0ab240c 100644
+--- a/src/libinput.c
++++ b/src/libinput.c
+@@ -1293,6 +1293,26 @@ static Atom prop_float;
+ static Atom prop_device;
+ static Atom prop_product_id;
+ 
++static inline BOOL
++xf86libinput_check_device (DeviceIntPtr dev,
++			   Atom atom)
++{
++	InputInfoPtr pInfo = dev->public.devicePrivate;
++	struct xf86libinput *driver_data = pInfo->private;
++	struct libinput_device *device = driver_data->device;
++
++	if (device == NULL) {
++		BUG_WARN(dev->public.on);
++		xf86IDrvMsg(pInfo, X_INFO,
++			    "SetProperty on %d called but device is disabled.\n"
++			    "This driver cannot change properties on a disabled device\n",
++			    atom);
++		return FALSE;
++	}
++
++	return TRUE;
++}
++
+ static inline int
+ LibinputSetPropertyTap(DeviceIntPtr dev,
+                        Atom atom,
+@@ -1312,6 +1332,9 @@ LibinputSetPropertyTap(DeviceIntPtr dev,
+ 		if (*data != 0 && *data != 1)
+ 			return BadValue;
+ 
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
++
+ 		if (libinput_device_config_tap_get_finger_count(device) == 0)
+ 			return BadMatch;
+ 	} else {
+@@ -1343,6 +1366,9 @@ LibinputSetPropertyCalibration(DeviceIntPtr dev,
+ 		    data[8] != 1)
+ 			return BadValue;
+ 
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
++
+ 		if (!libinput_device_config_calibration_has_matrix(device))
+ 			return BadMatch;
+ 	} else {
+@@ -1374,6 +1400,9 @@ LibinputSetPropertyAccel(DeviceIntPtr dev,
+ 		if (*data < -1 || *data > 1)
+ 			return BadValue;
+ 
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
++
+ 		if (libinput_device_config_accel_is_available(device) == 0)
+ 			return BadMatch;
+ 	} else {
+@@ -1403,6 +1432,9 @@ LibinputSetPropertyNaturalScroll(DeviceIntPtr dev,
+ 		if (*data != 0 && *data != 1)
+ 			return BadValue;
+ 
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
++
+ 		if (libinput_device_config_scroll_has_natural_scroll(device) == 0)
+ 			return BadMatch;
+ 	} else {
+@@ -1435,9 +1467,12 @@ LibinputSetPropertySendEvents(DeviceIntPtr dev,
+ 		modes |= LIBINPUT_CONFIG_SEND_EVENTS_DISABLED_ON_EXTERNAL_MOUSE;
+ 
+ 	if (checkonly) {
+-		uint32_t supported =
+-			libinput_device_config_send_events_get_modes(device);
++		uint32_t supported;
++
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
+ 
++		supported = libinput_device_config_send_events_get_modes(device);
+ 		if ((modes | supported) != supported)
+ 			return BadValue;
+ 
+@@ -1465,9 +1500,13 @@ LibinputSetPropertyLeftHanded(DeviceIntPtr dev,
+ 	data = (BOOL*)val->data;
+ 
+ 	if (checkonly) {
+-		int supported = libinput_device_config_left_handed_is_available(device);
++		int supported;
+ 		int left_handed = *data;
+ 
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
++
++		supported = libinput_device_config_left_handed_is_available(device);
+ 		if (!supported && left_handed)
+ 			return BadValue;
+ 	} else {
+@@ -1502,11 +1541,15 @@ LibinputSetPropertyScrollMethods(DeviceIntPtr dev,
+ 		modes |= LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN;
+ 
+ 	if (checkonly) {
+-		uint32_t supported = libinput_device_config_scroll_get_methods(device);
++		uint32_t supported;
+ 
+ 		if (__builtin_popcount(modes) > 1)
+ 			return BadValue;
+ 
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
++
++		supported = libinput_device_config_scroll_get_methods(device);
+ 		if (modes && (modes & supported) == 0)
+ 			return BadValue;
+ 	} else {
+@@ -1534,9 +1577,13 @@ LibinputSetPropertyScrollButton(DeviceIntPtr dev,
+ 
+ 	if (checkonly) {
+ 		uint32_t button = *data;
+-		uint32_t supported = libinput_device_has_button(device,
+-								btn_xorg2linux(button));
++		uint32_t supported;
++
++		if (!xf86libinput_check_device (dev, atom))
++			return BadMatch;
+ 
++		supported = libinput_device_has_button(device,
++						       btn_xorg2linux(button));
+ 		if (button && !supported)
+ 			return BadValue;
+ 	} else {
+-- 
+cgit v0.10.2
+



More information about the arch-commits mailing list