aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-03-10 17:16:38 -0400
committerAdam Jackson <ajax@redhat.com>2008-03-10 17:16:38 -0400
commit87037b9953ebd47e9dbd99b3653050517aa490ff (patch)
treee19937cc69ccbc664eb980603d567d6d2ff9bf6d
parentFix cut-and-paste errors in xkb alternate spellings code (diff)
downloadxf86-input-evdev-87037b9953ebd47e9dbd99b3653050517aa490ff.tar.gz
xf86-input-evdev-87037b9953ebd47e9dbd99b3653050517aa490ff.tar.bz2
xf86-input-evdev-87037b9953ebd47e9dbd99b3653050517aa490ff.zip
Force xkb_model to be "evdev".
Or at least, refuse to recognise the config option. It's nonsensical to use a model of something other than evdev, and it'll just break if you try.
-rw-r--r--src/evdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evdev.c b/src/evdev.c
index e53e449..89ff6a5 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -678,9 +678,9 @@ EvdevAddKeyClass(DeviceIntPtr device)
SetXkbOption(pInfo, "xkb_rules", &pEvdev->xkb_rules);
if (!pEvdev->xkb_rules)
SetXkbOption(pInfo, "XkbRules", &pEvdev->xkb_rules);
+ /* sorry, no model change allowed for you */
+ xf86ReplaceStrOption(pInfo->options, "xkb_model", "evdev");
SetXkbOption(pInfo, "xkb_model", &pEvdev->xkb_model);
- if (!pEvdev->xkb_model)
- SetXkbOption(pInfo, "XkbModel", &pEvdev->xkb_model);
SetXkbOption(pInfo, "xkb_layout", &pEvdev->xkb_layout);
if (!pEvdev->xkb_layout)
SetXkbOption(pInfo, "XkbLayout", &pEvdev->xkb_layout);