Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
xf86-input-libinput.28143
U_boo1208486.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File U_boo1208486.patch of Package xf86-input-libinput.28143
From 6c1c53d296f42b4bdadadf1d85750c4610fc4096 Mon Sep 17 00:00:00 2001 From: Peter Hutterer <peter.hutterer@who-t.net> Date: Fri, 9 Apr 2021 10:33:15 +1000 Subject: [PATCH] Make sure the device is valid when setting the tap button map Fixes #34 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> --- src/xf86libinput.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) Index: xf86-input-libinput-0.28.1/src/xf86libinput.c =================================================================== --- xf86-input-libinput-0.28.1.orig/src/xf86libinput.c +++ xf86-input-libinput-0.28.1/src/xf86libinput.c @@ -3793,10 +3793,14 @@ LibinputSetPropertyTapButtonmap(DeviceIn 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])
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor