Commit 7487d7fa authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

XKB: Fix logic error

commit 6aef4e96affcc26b9415c6bc9c9bebb5af05a1a7 Author: Daniel Stone <daniel@fooishbar.org> Date: Sat Jan 17 13:42:46 2009 +0200 XKB: Fix logic error Use logical or instead of bitwise or. Signed-off-by: 's avatarDaniel Stone <daniel@fooishbar.org> Signed-off-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net> Backported-to-nx-by: 's avatarUlrich Sibiller <uli42@gmx.de>
parent 6625e78c
......@@ -607,7 +607,7 @@ Bool ignoreKeyEvent = FALSE;
ev.keycode= key;
ev.slowKeysDelay= ctrls->slow_keys_delay;
ev.debounceDelay= ctrls->debounce_delay;
if (BitIsOn(keybd->key->down,key) | (xkbi->mouseKey == key)) {
if (BitIsOn(keybd->key->down,key) || (xkbi->mouseKey == key)) {
ev.detail= XkbAXN_SKRelease;
beep_type= _BEEP_SLOW_RELEASE;
}
......
Markdown is supported
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