Fix failure when setting up EV_REP
This commit is contained in:
parent
dfae10396d
commit
cc6e0e004a
26
0001-device-fix-setting-an-EV_REP-value.patch
Normal file
26
0001-device-fix-setting-an-EV_REP-value.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 17ae4427875c8e7cdc565ba32839af93e0bd2f24 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Hutterer <peter.hutterer@who-t.net>
|
||||
Date: Mon, 26 Feb 2018 16:40:29 +1000
|
||||
Subject: [PATCH] device: fix setting an EV_REP value
|
||||
|
||||
Leftover from earlier versions
|
||||
---
|
||||
libevdev/device.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libevdev/device.py b/libevdev/device.py
|
||||
index 618164f..2ff63ce 100644
|
||||
--- a/libevdev/device.py
|
||||
+++ b/libevdev/device.py
|
||||
@@ -741,7 +741,7 @@ class Device(object):
|
||||
if t == libevdev.EV_ABS:
|
||||
data = self.absinfo[c]
|
||||
elif t == libevdev.EV_REP:
|
||||
- data = self.event_value(c)
|
||||
+ data = self.value[c]
|
||||
else:
|
||||
data = None
|
||||
d.enable(c, data)
|
||||
--
|
||||
2.14.3
|
||||
|
||||
@ -1,12 +1,14 @@
|
||||
Name: python-libevdev
|
||||
Version: 0.4
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Python bindings to the libevdev evdev device wrapper library
|
||||
|
||||
License: MIT
|
||||
URL: https://pypi.python.org/pypi/libevdev/
|
||||
Source0: http://github.com/whot/python-libevdev/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
Patch01: 0001-device-fix-setting-an-EV_REP-value.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@ -29,7 +31,7 @@ devices and create uinput devices.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version}
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
|
||||
%build
|
||||
@ -46,6 +48,9 @@ devices and create uinput devices.
|
||||
%{python3_sitelib}/libevdev-%{version}-py*.egg-info
|
||||
|
||||
%changelog
|
||||
* Thu Apr 19 2018 Peter Hutterer <peter.hutterer@redhat.com> 0.4-2
|
||||
- Fix failure when setting up EV_REP
|
||||
|
||||
* Mon Feb 26 2018 Peter Hutterer <peter.hutterer@redhat.com>- 0.4-1
|
||||
- initial import (#1549003)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user