Compare commits

..

2 Commits

Author SHA1 Message Date
Peter Hutterer
69888cef81 xf86-input-libinput 1.0.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-04-16 12:18:24 +10:00
Peter Hutterer
6c1c53d296 Make sure the device is valid when setting the tap button map
Fixes #34

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-04-09 10:33:15 +10:00
2 changed files with 7 additions and 3 deletions

View File

@@ -23,7 +23,7 @@
# Initialize Autoconf
AC_PREREQ([2.60])
AC_INIT([xf86-input-libinput],
[1.0.0],
[1.0.1],
[https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/issues],
[xf86-input-libinput])
AC_CONFIG_SRCDIR([Makefile.am])

View File

@@ -3812,10 +3812,14 @@ LibinputSetPropertyTapButtonmap(DeviceIntPtr dev,
data = (BOOL*)val->data;
if (checkonly &&
((data[0] && data[1]) || (!data[0] && !data[1])))
if (checkonly) {
if ((data[0] && data[1]) || (!data[0] && !data[1]))
return BadValue;
if (!xf86libinput_check_device (dev, atom))
return BadMatch;
}
if (data[0])
map = LIBINPUT_CONFIG_TAP_MAP_LRM;
else if (data[1])