[PATCH RESEND] xfree86: disable VT switching/enable VT sharing by default for non-seat0 seats (#69477)
Laércio de Sousa
lbsousajr at gmail.com
Thu Nov 7 02:38:33 PST 2013
This patch contributes to fill the remaining gaps which make
systemd-multi-seat-x wrapper still necessary in some multiseat setups.
When option "-seat" is passed with an argument different from "seat0",
the following xf86Info properties are set to TRUE by default:
* dontVTSwitch (no need of enabling ServerFlag option "DontVTSwitch" in xorg.conf)
* ShareVTs (no need of passing -sharevts option)
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=69477
Signed-off-by: Laércio de Sousa <lbsousajr at gmail.com>
---
hw/xfree86/common/xf86Config.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c
index 74d5ed3..8d13adb 100644
--- a/hw/xfree86/common/xf86Config.c
+++ b/hw/xfree86/common/xf86Config.c
@@ -783,6 +783,12 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
set.variant = NULL;
set.options = NULL;
+ /* Default for non-seat0 seats */
+ if (ServerIsNotSeat0()) {
+ xf86Info.dontVTSwitch = TRUE;
+ xf86Info.ShareVTs = TRUE;
+ }
+
/*
* Merge the ServerLayout and ServerFlags options. The former have
* precedence over the latter.
--
1.8.1.4
More information about the xorg-devel
mailing list