Any comments on this patch?
Is there another way to get the desired effect (x on wayland works
without having to use sudo to temporarily alter the files needed to run
normal X)?
Or is this just not considered a problem because of the assumption that
when Wayland is used there just won't be any xorg.conf files on the machine?
spit...@gmail.com wrote:
From: Bill Spitzak <spit...@gmail.com>
This allows X applications to be run on wayland without having to
delete conf files needed to run the legacy X server on the same
machine.
The --config and --configdir switches can override these changes.
An extra patch to xorg was needed, as it *always* looked for
xorg.conf.d. I changed it to not do this if --configdir or
--wayland was given.
---
hw/xfree86/common/xf86Config.c | 5 ++++-
hw/xfree86/common/xf86Init.c | 4 ++++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c
index 3934ff0..2376889 100644
--- a/hw/xfree86/common/xf86Config.c
+++ b/hw/xfree86/common/xf86Config.c
@@ -2386,7 +2386,10 @@ xf86HandleConfigFile(Bool autoconfig)
dirfrom = X_CMDLINE;
xf86initConfigFiles();
- sysdirname = xf86openConfigDirFiles(SYS_CONFIGDIRPATH, NULL,
+ if (xf86ConfigDir)
+ sysdirname = 0;
+ else
+ sysdirname = xf86openConfigDirFiles(SYS_CONFIGDIRPATH, NULL,
PROJECTROOT);
dirname = xf86openConfigDirFiles(dirsearch, xf86ConfigDir,
PROJECTROOT);
filename = xf86openConfigFile(filesearch, xf86ConfigFile, PROJECTROOT);
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
index a062929..b2a668c 100644
--- a/hw/xfree86/common/xf86Init.c
+++ b/hw/xfree86/common/xf86Init.c
@@ -1412,6 +1412,10 @@ ddxProcessArgument(int argc, char **argv, int i)
if (!strcmp(argv[i], "-wayland"))
{
xorgWayland = TRUE;
+ if (!xf86ConfigFile)
+ xf86ConfigFile = "xwayland.conf";
+ if (!xf86ConfigDir)
+ xf86ConfigDir = "xwayland.conf.d";
return 1;
}
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel