mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 05:18:25 +02:00
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
1 changed files with 4 additions and 1 deletions
|
|
@ -102,7 +102,10 @@ xf86parseInputSection (void)
|
|||
case DRIVER:
|
||||
if (xf86getSubToken (&(ptr->inp_comment)) != STRING)
|
||||
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;
|
||||
case OPTION:
|
||||
ptr->inp_option_lst = xf86parseOption(ptr->inp_option_lst);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue