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
KWayland Server
Commits
21ab5652
Commit
21ab5652
authored
Mar 15, 2021
by
Vlad Zahorodnii
Browse files
Remove redundant nullptr check
We always check if focusedSurface is not nullptr before calling sendModifiers().
parent
2acb99e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/keyboard_interface.cpp
View file @
21ab5652
...
...
@@ -109,9 +109,6 @@ void KeyboardInterfacePrivate::sendKeymap(int fd, quint32 size)
void
KeyboardInterfacePrivate
::
sendModifiers
(
quint32
depressed
,
quint32
latched
,
quint32
locked
,
quint32
group
,
quint32
serial
)
{
if
(
!
focusedSurface
)
{
return
;
}
const
QList
<
Resource
*>
keyboards
=
keyboardsForClient
(
focusedSurface
->
client
());
for
(
Resource
*
keyboardResource
:
keyboards
)
{
send_modifiers
(
keyboardResource
->
handle
,
serial
,
depressed
,
latched
,
locked
,
group
);
...
...
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