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.
This commit is contained in:
Daniel Stone 2006-10-27 01:25:21 +03:00 committed by Daniel Stone
parent 85212eb504
commit a5be654017

View File

@ -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;
}