From 9bbe288d7fd59d4e192a986b8622915ce7b447a9 Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Fri, 2 Apr 2004 21:47:33 +0000 Subject: 70. Merging in the TM branch (Egbert Eich). --- hw/xwin/winconfig.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'hw/xwin/winconfig.c') diff --git a/hw/xwin/winconfig.c b/hw/xwin/winconfig.c index db69005fd..d62fb18d9 100644 --- a/hw/xwin/winconfig.c +++ b/hw/xwin/winconfig.c @@ -126,6 +126,11 @@ winReadConfigfile () /* Parse config file into data structure */ filename = xf86openConfigFile (CONFIGPATH, xf86ConfigFile, PROJECTROOT); + + /* Hack for backward compatibility */ + if (!filename && from == X_DEFAULT) + filename = xf86openConfigFile (CONFIGPATH, "XF86Config", PROJECTROOT); + if (filename) { winMsg (from, "Using config file: \"%s\"\n", filename); @@ -258,7 +263,7 @@ winConfigKeyboard (DeviceIntPtr pDevice) g_winInfo.xkb.variant = NULL; g_winInfo.xkb.options = NULL; # else - g_winInfo.xkb.rules = "xfree86"; + g_winInfo.xkb.rules = "xorg"; g_winInfo.xkb.model = "pc101"; g_winInfo.xkb.layout = "us"; g_winInfo.xkb.variant = NULL; -- cgit v1.2.3