]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - queue-4.4/hid-input-add-mapping-for-expose-overview-key.patch
4.4-stable patches
[thirdparty/kernel/stable-queue.git] / queue-4.4 / hid-input-add-mapping-for-expose-overview-key.patch
CommitLineData
345c7afc
SL
1From 9b3d9a41618fbc3f1ae2097698f146eda2f64331 Mon Sep 17 00:00:00 2001
2From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
3Date: Fri, 18 Jan 2019 13:59:08 -0800
4Subject: HID: input: add mapping for Expose/Overview key
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9[ Upstream commit 96dd86871e1fffbc39e4fa61c9c75ec54ee9af0f ]
10
11According to HUTRR77 usage 0x29f from the consumer page is reserved for
12the Desktop application to present all running user’s application windows.
13Linux defines KEY_SCALE to request Compiz Scale (Expose) mode, so let's
14add the mapping.
15
16Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
17Signed-off-by: Sasha Levin <sashal@kernel.org>
18---
19 drivers/hid/hid-input.c | 2 ++
20 1 file changed, 2 insertions(+)
21
22diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
23index 8d74e691ac90f..01b41ff430564 100644
24--- a/drivers/hid/hid-input.c
25+++ b/drivers/hid/hid-input.c
26@@ -913,6 +913,8 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
27 case 0x2cb: map_key_clear(KEY_KBDINPUTASSIST_ACCEPT); break;
28 case 0x2cc: map_key_clear(KEY_KBDINPUTASSIST_CANCEL); break;
29
30+ case 0x29f: map_key_clear(KEY_SCALE); break;
31+
32 default: map_key_clear(KEY_UNKNOWN);
33 }
34 break;
35--
362.20.1
37