xfree86/parser: use 'kbd' driver when 'keyboard' specified
Now that we've completely ditched the old driver, we should probably make a best-effort attempt to keep configs working.
This commit is contained in:
parent
7c4167f0d6
commit
d6f36bd280
|
@ -102,7 +102,10 @@ xf86parseInputSection (void)
|
||||||
case DRIVER:
|
case DRIVER:
|
||||||
if (xf86getSubToken (&(ptr->inp_comment)) != STRING)
|
if (xf86getSubToken (&(ptr->inp_comment)) != STRING)
|
||||||
Error (QUOTE_MSG, "Driver");
|
Error (QUOTE_MSG, "Driver");
|
||||||
ptr->inp_driver = val.str;
|
if (strcmp(val.str, "keyboard") == 0)
|
||||||
|
ptr->inp_driver = "kbd";
|
||||||
|
else
|
||||||
|
ptr->inp_driver = val.str;
|
||||||
break;
|
break;
|
||||||
case OPTION:
|
case OPTION:
|
||||||
ptr->inp_option_lst = xf86parseOption(ptr->inp_option_lst);
|
ptr->inp_option_lst = xf86parseOption(ptr->inp_option_lst);
|
||||||
|
|
Loading…
Reference in New Issue