summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-10-06 17:00:58 +1000
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-10-06 01:12:56 -0700
commitadc1048980113b329d97ebf5b974ca4a50fc86ba (patch)
tree12fddd65b9184ab2057e76b915f1394bf8ad5410
parentecd34ebd43d5a8c0db0a6dd132b61a4c663c7fd8 (diff)
downloadxorg-driver-xf86-input-keyboard-adc1048980113b329d97ebf5b974ca4a50fc86ba.tar.gz
Don't use XKB_DFLT_RULES from the server.
On Linux, the server uses default rules of "evdev" which doesn't apply for this driver. For all other cases, the server uses "base", so let's just hardcode it here too. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r--src/kbd.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/kbd.c b/src/kbd.c
index c86c2fc..b2e858f 100644
--- a/src/kbd.c
+++ b/src/kbd.c
@@ -113,12 +113,6 @@ static const OptionInfoRec KeyboardOptions[] = {
{ -1, NULL, OPTV_NONE, {0}, FALSE }
};
-/* Xorg 1.6 and earlier put the default XKB rules file in __XKBDEFRULES__
- in xorg-server.h, later versions switched to XKB_DFLT_RULES */
-#if !defined(XKB_DFLT_RULES) && defined(__XKBDEFRULES__)
-# define XKB_DFLT_RULES __XKBDEFRULES__
-#endif
-
static const char *kbdDefaults[] = {
#ifdef XQUEUE
"Protocol", "Xqueue",
@@ -126,7 +120,7 @@ static const char *kbdDefaults[] = {
"Protocol", "standard",
#endif
"AutoRepeat", "500 30",
- "XkbRules", XKB_DFLT_RULES,
+ "XkbRules", "base",
"XkbModel", "pc105",
"XkbLayout", "us",
"CustomKeycodes", "off",