Handle printing of tablet mode switches (#1510814)

This commit is contained in:
Peter Hutterer 2017-11-14 18:21:49 +10:00
parent 9a7d455eba
commit 20471d9763
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,31 @@
From 48fd22def7ae1a8d67d1f6f2e0d6e6f98c7a9361 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Fri, 3 Nov 2017 23:01:23 +0100
Subject: [PATCH libinput] tools: Handle LIBINPUT_SWITCH_TABLET_MODE
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
---
tools/libinput-debug-events.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/libinput-debug-events.c b/tools/libinput-debug-events.c
index 87b7b803..fb8d84d8 100644
--- a/tools/libinput-debug-events.c
+++ b/tools/libinput-debug-events.c
@@ -747,6 +747,9 @@ print_switch_event(struct libinput_event *ev)
case LIBINPUT_SWITCH_LID:
which = "lid";
break;
+ case LIBINPUT_SWITCH_TABLET_MODE:
+ which = "tablet-mode";
+ break;
default:
abort();
}
--
2.13.6

View File

@ -5,7 +5,7 @@
Name: libinput
Version: 1.9.1
Release: 2%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
Release: 3%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
Summary: Input device library
License: MIT
@ -19,6 +19,7 @@ Source0: http://www.freedesktop.org/software/libinput/libinput-%{version}
%endif
Patch01: 0001-tools-when-the-command-isn-t-installed-print-that.patch
Patch02: 0001-tools-Handle-LIBINPUT_SWITCH_TABLET_MODE.patch
BuildRequires: git-core
BuildRequires: gcc
@ -121,6 +122,9 @@ git am -p1 %{patches} < /dev/null
%{_mandir}/man1/libinput-measure-trackpoint-range.1*
%changelog
* Tue Nov 14 2017 Peter Hutterer <peter.hutterer@redhat.com> 1.9.1-3
- Handle printing of tablet mode switches (#1510814)
* Thu Nov 09 2017 Peter Hutterer <peter.hutterer@redhat.com> 1.9.1-2
- Split some of the tools into a libinput-utils package so we can require
the various bits easier (#1509298)