Xinput: allow non-integer values again for Constant- and AdaptiveDeceleration
This was initially fixed by commit3932a84857
but then (presumably not intentionally) undone by commit1d54479cb3
. Signed-off-by: Hans Nieser <hnsr@xs4all.nl> Signed-off-by: Keith Packard <keithp@keithp.com> (cherry picked from commit55f4c80a4c
)
This commit is contained in:
parent
6e2f5912b6
commit
9db4c77956
|
@ -113,7 +113,7 @@ ProcessVelocityConfiguration(DeviceIntPtr pDev, char* devname, pointer list,
|
|||
return;
|
||||
|
||||
/* common settings (available via device properties) */
|
||||
tempf = xf86SetIntOption(list, "ConstantDeceleration", 1);
|
||||
tempf = xf86SetRealOption(list, "ConstantDeceleration", 1.0);
|
||||
if(tempf > 1.0){
|
||||
xf86Msg(X_CONFIG, "%s: (accel) constant deceleration by %.1f\n",
|
||||
devname, tempf);
|
||||
|
@ -122,7 +122,7 @@ ProcessVelocityConfiguration(DeviceIntPtr pDev, char* devname, pointer list,
|
|||
PropModeReplace, 1, &tempf, FALSE);
|
||||
}
|
||||
|
||||
tempf = xf86SetIntOption(list, "AdaptiveDeceleration", 1);
|
||||
tempf = xf86SetRealOption(list, "AdaptiveDeceleration", 1.0);
|
||||
if(tempf > 1.0){
|
||||
xf86Msg(X_CONFIG, "%s: (accel) adaptive deceleration by %.1f\n",
|
||||
devname, tempf);
|
||||
|
|
Loading…
Reference in New Issue