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>
This commit is contained in:
parent
0ec9b1069a
commit
6aef4e96af
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user