diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-08-25 12:43:17 +0300 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-08-25 12:43:17 +0300 |
commit | d6f36bd28009881ef7f7a20cdadb3808d808ed97 (patch) | |
tree | bee17a87830c0d92eea45db6022683a03c500bb5 /hw/xfree86/parser | |
parent | 7c4167f0d6b33c9c602b04fcfd246fd3aeddd709 (diff) |
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.
Diffstat (limited to 'hw/xfree86/parser')
-rw-r--r-- | hw/xfree86/parser/Input.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/xfree86/parser/Input.c b/hw/xfree86/parser/Input.c index 3e2186a9d..3d9801968 100644 --- a/hw/xfree86/parser/Input.c +++ b/hw/xfree86/parser/Input.c @@ -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); |