Commit 21ab5652 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Remove redundant nullptr check

We always check if focusedSurface is not nullptr before calling
sendModifiers().
parent 2acb99e9
......@@ -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);
......
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