diff --git a/lib/server/CServer.cpp b/lib/server/CServer.cpp index f4bc9868..b9baf99b 100644 --- a/lib/server/CServer.cpp +++ b/lib/server/CServer.cpp @@ -1558,8 +1558,7 @@ CServer::onKeyDown(KeyID id, KeyModifierMask mask, KeyButton button, assert(m_active != NULL); // relay - if (!m_keyboardBroadcasting && - (screens && IKeyState::CKeyInfo::isDefault(screens))) { + if (!m_keyboardBroadcasting && IKeyState::CKeyInfo::isDefault(screens)) { m_active->keyDown(id, mask, button); } else { @@ -1586,8 +1585,7 @@ CServer::onKeyUp(KeyID id, KeyModifierMask mask, KeyButton button, assert(m_active != NULL); // relay - if (!m_keyboardBroadcasting && - (screens && IKeyState::CKeyInfo::isDefault(screens))) { + if (!m_keyboardBroadcasting && IKeyState::CKeyInfo::isDefault(screens)) { m_active->keyUp(id, mask, button); } else {