From 20471d9763f13b477e3b98eb1ef99fea8abd8110 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Nov 14 2017 08:21:49 +0000 Subject: Handle printing of tablet mode switches (#1510814) --- diff --git a/0001-tools-Handle-LIBINPUT_SWITCH_TABLET_MODE.patch b/0001-tools-Handle-LIBINPUT_SWITCH_TABLET_MODE.patch new file mode 100644 index 0000000..9145d31 --- /dev/null +++ b/0001-tools-Handle-LIBINPUT_SWITCH_TABLET_MODE.patch @@ -0,0 +1,31 @@ +From 48fd22def7ae1a8d67d1f6f2e0d6e6f98c7a9361 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Stefan=20Br=C3=BCns?= +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 +Signed-off-by: Peter Hutterer +--- + 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 + diff --git a/libinput.spec b/libinput.spec index a147603..8869450 100644 --- a/libinput.spec +++ b/libinput.spec @@ -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 1.9.1-3 +- Handle printing of tablet mode switches (#1510814) + * Thu Nov 09 2017 Peter Hutterer 1.9.1-2 - Split some of the tools into a libinput-utils package so we can require the various bits easier (#1509298)