Commit 14ccbb8b authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Remove redundant nullptr check

We always check if focusedSurface is not nullptr before calling
parent 9526b1c3
......@@ -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) {
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