summaryrefslogtreecommitdiff
path: root/xkb/xkbAccessX.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2009-01-17 13:42:46 +0200
committerDaniel Stone <daniel@fooishbar.org>2009-01-22 15:09:00 +1100
commit6aef4e96affcc26b9415c6bc9c9bebb5af05a1a7 (patch)
tree6d45bbd02c2e0f25eb1018df610d06626a979715 /xkb/xkbAccessX.c
parent0ec9b1069aeeaf66fd104c09f08202f7ebccd170 (diff)
XKB: Fix logic error
Use logical or instead of bitwise or. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb/xkbAccessX.c')
-rw-r--r--xkb/xkbAccessX.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkb/xkbAccessX.c b/xkb/xkbAccessX.c
index 4a0f56112..c7f7439c2 100644
--- a/xkb/xkbAccessX.c
+++ b/xkb/xkbAccessX.c
@@ -604,7 +604,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;
}