diff options
Diffstat (limited to 'dix/devices.c')
-rw-r--r-- | dix/devices.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dix/devices.c b/dix/devices.c index 45edd375c..a4c8e76aa 100644 --- a/dix/devices.c +++ b/dix/devices.c @@ -1251,9 +1251,12 @@ InitValuatorClassDeviceStruct(DeviceIntPtr dev, int numAxes, Atom *labels, valc->numMotionEvents = numMotionEvents; valc->motionHintWindow = NullWindow; valc->numAxes = numAxes; - valc->mode = mode; valc->axes = (AxisInfoPtr)(valc + 1); valc->axisVal = (double *)(valc->axes + numAxes); + + if (mode & OutOfProximity) + InitProximityClassDeviceStruct(dev); + dev->valuator = valc; AllocateMotionHistory(dev); |