Use xf86SetStrOption to check for string options

This one shows up in the log and marks it as used.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2018-04-20 13:33:45 +10:00
parent eaf847be16
commit 6c75acfcdf

View File

@@ -2684,9 +2684,9 @@ xf86libinput_parse_calibration_option(InputInfoPtr pInfo,
libinput_device_config_calibration_get_matrix(device, matrix);
memcpy(matrix_out, matrix, sizeof(matrix));
str = xf86CheckStrOption(pInfo->options,
"CalibrationMatrix",
NULL);
str = xf86SetStrOption(pInfo->options,
"CalibrationMatrix",
NULL);
if (!str)
return;
@@ -2914,7 +2914,7 @@ xf86libinput_parse_draglock_option(InputInfoPtr pInfo,
{
char *str;
str = xf86CheckStrOption(pInfo->options, "DragLockButtons",NULL);
str = xf86SetStrOption(pInfo->options, "DragLockButtons",NULL);
if (draglock_init_from_string(&driver_data->draglock, str) != 0)
xf86IDrvMsg(pInfo, X_ERROR,
"Invalid DragLockButtons option: \"%s\"\n",