xfree86: Only use the evdev ruleset on linux.
As suggested by Julien Cristau
This is an follow-up to
commit 9c5dd7337f
Author: Peter Hutterer <peter.hutterer@redhat.com>
Date: Wed Dec 3 14:24:25 2008 +1000
Let the DDX decide on the XkbRulesDefaults.
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Acked-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
8e32791349
commit
13de7511b1
|
@ -846,6 +846,9 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
|
||||||
Bool value;
|
Bool value;
|
||||||
MessageType from;
|
MessageType from;
|
||||||
const char *s;
|
const char *s;
|
||||||
|
#ifdef XKB
|
||||||
|
char *rules = "base";
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Merge the ServerLayout and ServerFlags options. The former have
|
* Merge the ServerLayout and ServerFlags options. The former have
|
||||||
|
@ -1010,8 +1013,11 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
|
||||||
|
|
||||||
/* AEI on? Then we're not using kbd, so use the evdev rules set. */
|
/* AEI on? Then we're not using kbd, so use the evdev rules set. */
|
||||||
#ifdef XKB
|
#ifdef XKB
|
||||||
XkbSetRulesDflts(((xf86Info.allowEmptyInput) ? "evdev" : "base"),
|
#if defined(linux)
|
||||||
"pc105", "us", NULL, NULL);
|
if (xf86Info.allowEmptyInput)
|
||||||
|
rules = "evdev";
|
||||||
|
#endif
|
||||||
|
XkbSetRulesDflts(rules, "pc105", "us", NULL, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
xf86Info.useDefaultFontPath = TRUE;
|
xf86Info.useDefaultFontPath = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue