summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-02-22 18:07:20 +1300
committerKeith Packard <keithp@keithp.com>2012-02-22 18:07:20 +1300
commit71594746c7da32e1c7986341a0da30f241a7a2be (patch)
tree35df232e9ef7097d8618bd9be7973b7c4e0e3103 /dix
parentd53235af85d50774c68347720ce132daf9a5bc49 (diff)
parenteaba06a27c5520a02f08431ac1e4b0e0bdc22cd8 (diff)
Merge remote-tracking branch 'whot/for-keith'
Diffstat (limited to 'dix')
-rw-r--r--dix/getevents.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dix/getevents.c b/dix/getevents.c
index 7678aa1f2..6ea4ba010 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -360,6 +360,7 @@ updateSlaveDeviceCoords(DeviceIntPtr master, DeviceIntPtr pDev)
if (i >= lastSlave->valuator->numAxes)
{
pDev->last.valuators[i] = 0;
+ valuator_mask_set_double(pDev->last.scroll, i, 0);
}
else
{
@@ -367,6 +368,7 @@ updateSlaveDeviceCoords(DeviceIntPtr master, DeviceIntPtr pDev)
val = rescaleValuatorAxis(val, lastSlave->valuator->axes + i,
pDev->valuator->axes + i, 0, 0);
pDev->last.valuators[i] = val;
+ valuator_mask_set_double(pDev->last.scroll, i, val);
}
}
}