Removing some odd logic fromt the keyboard broadcast patch which now causes it to eat keystrokes on clients. I have no idea what the original intention of that was, but it tests out fine without it.

This commit is contained in:
mthiel 2009-12-31 01:50:09 +00:00
parent 027c2a849f
commit 8de84743bc
1 changed files with 2 additions and 4 deletions

View File

@ -1558,8 +1558,7 @@ CServer::onKeyDown(KeyID id, KeyModifierMask mask, KeyButton button,
assert(m_active != NULL); assert(m_active != NULL);
// relay // relay
if (!m_keyboardBroadcasting && if (!m_keyboardBroadcasting && IKeyState::CKeyInfo::isDefault(screens)) {
(screens && IKeyState::CKeyInfo::isDefault(screens))) {
m_active->keyDown(id, mask, button); m_active->keyDown(id, mask, button);
} }
else { else {
@ -1586,8 +1585,7 @@ CServer::onKeyUp(KeyID id, KeyModifierMask mask, KeyButton button,
assert(m_active != NULL); assert(m_active != NULL);
// relay // relay
if (!m_keyboardBroadcasting && if (!m_keyboardBroadcasting && IKeyState::CKeyInfo::isDefault(screens)) {
(screens && IKeyState::CKeyInfo::isDefault(screens))) {
m_active->keyUp(id, mask, button); m_active->keyUp(id, mask, button);
} }
else { else {