mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-03-24 01:24:04 +00:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user