Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
288c2335
Commit
288c2335
authored
Jan 31, 2021
by
David Faure
Browse files
kcm_keyboard: Cameras are not keyboards, don't setxkbmap when plugging a camera
(cherry picked from commit
cfdaf863
)
parent
67857ad3
Changes
1
Hide whitespace changes
Inline
Side-by-side
kcms/keyboard/xinput_helper.cpp
View file @
288c2335
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment