getValuatorEvents: make sure we put MORE_EVENTS in the right places

Make sure we put MORE_EVENTS in with the device id if there are, in fact,
more valuator events coming.
This commit is contained in:
Daniel Stone 2006-10-27 01:23:58 +03:00 committed by Daniel Stone
parent 8c0556e7cb
commit 85212eb504

View File

@ -365,6 +365,9 @@ getValuatorEvents(xEvent *events, DeviceIntPtr pDev, int first_valuator,
case 1:
xv->valuator0 = valuators[i];
}
if (i + 6 < final_valuator)
xv->deviceid |= MORE_EVENTS;
}
return events;