dix: treat flags as flags, not as value in key_is_down.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
b46ffd25d3
commit
10442ce02b
|
@ -115,7 +115,7 @@ key_is_down(DeviceIntPtr pDev, int key_code, int type)
|
|||
|
||||
if (type & KEY_PROCESSED)
|
||||
ret |= !!(pDev->key->down[key_code >> 3] & (1 << (key_code & 7)));
|
||||
else if (type & KEY_POSTED)
|
||||
if (type & KEY_POSTED)
|
||||
ret |= !!(pDev->key->postdown[key_code >> 3] & (1 << (key_code & 7)));
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue
Block a user