summaryrefslogtreecommitdiff
blob: a2bee27e83d3721a80f1332605854efb72c95357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From cfdaf8636830df3760bf370d48bd4be890ada709 Mon Sep 17 00:00:00 2001
From: David Faure <faure@kde.org>
Date: Sun, 31 Jan 2021 12:04:19 +0100
Subject: [PATCH] kcm_keyboard: Cameras are not keyboards, don't setxkbmap when
 plugging a camera

---
 kcms/keyboard/xinput_helper.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kcms/keyboard/xinput_helper.cpp b/kcms/keyboard/xinput_helper.cpp
index 9cae43369..14974ada7 100644
--- a/kcms/keyboard/xinput_helper.cpp
+++ b/kcms/keyboard/xinput_helper.cpp
@@ -102,7 +102,8 @@ static bool isRealKeyboard(const char* deviceName)
 	return strstr(deviceName, "Video Bus") == nullptr
 		&& strstr(deviceName, "Sleep Button") == nullptr
 		&& strstr(deviceName, "Power Button") == nullptr
-		&& strstr(deviceName, "WMI hotkeys") == nullptr;
+		&& strstr(deviceName, "WMI hotkeys") == nullptr
+		&& strstr(deviceName, "Camera") == nullptr;
 }
 
 int XInputEventNotifier::getNewDeviceEventType(xcb_generic_event_t* event)
-- 
GitLab