mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 14:10:06 +01:00
Fix getValuatorEvents to compute number of valuators correctly.
(cherry picked from commit e7a3644255)
This commit is contained in:
parent
2d312eaf4f
commit
ff99a3aa2b
1 changed files with 1 additions and 1 deletions
|
|
@ -349,7 +349,7 @@ getValuatorEvents(xEvent *events, DeviceIntPtr pDev, int first_valuator,
|
|||
for (i = first_valuator; i < final_valuator; i += 6, xv++, events++) {
|
||||
xv->type = DeviceValuator;
|
||||
xv->first_valuator = i;
|
||||
xv->num_valuators = ((num_valuators - i) > 6) ? 6 : (num_valuators - i);
|
||||
xv->num_valuators = ((num_valuators - i) > 6) ? 6 : (final_valuator - i);
|
||||
xv->deviceid = pDev->id;
|
||||
switch (final_valuator - i) {
|
||||
case 6:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue