Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
14ccbb8b
Commit
14ccbb8b
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
9526b1c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wayland/keyboard_interface.cpp
View file @
14ccbb8b
...
...
@@ -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
.
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