diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-10-27 01:25:21 +0300 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-10-27 01:25:21 +0300 |
commit | a5be65401769fabcb5001dc63035c69f9e4a2712 (patch) | |
tree | 299903448348ef63205c21246d9f3a0e19776a5d | |
parent | 85212eb504f860b054eb0f0a5029fed86cb8d1c0 (diff) |
mieqEnqueue: only compare DEVICE_BITS of deviceid
Only compare DEVICE_BITS of the two deviceids, so we don't decide that
a valuator event isn't for us, because (id | MORE_EVENTS) != id.
-rw-r--r-- | mi/mieq.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -117,7 +117,8 @@ mieqEnqueue(DeviceIntPtr pDev, xEvent *e) !(lastkbp->type == DeviceMotionNotify || lastkbp->type == DeviceButtonPress || lastkbp->type == DeviceButtonRelease) || - (lastkbp->deviceid != v->deviceid)) { + ((lastkbp->deviceid & DEVICE_BITS) != + (v->deviceid & DEVICE_BITS))) { ErrorF("mieqEnequeue: out-of-order valuator event; dropping.\n"); return; } |