Commit 288c2335 authored by David Faure's avatar David Faure
Browse files

kcm_keyboard: Cameras are not keyboards, don't setxkbmap when plugging a camera

(cherry picked from commit cfdaf863)
parent 67857ad3
......@@ -91,7 +91,7 @@ bool XInputEventNotifier::processOtherEvents(xcb_generic_event_t *event)
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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment