From d9604a7c7c33f4e7ea8bec192b9402224ed18d4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?La=C3=A9rcio=20de=20Sousa?= Date: Tue, 17 Sep 2013 13:01:53 -0300 Subject: [PATCH] xfree86: disable VT switching/enable VT sharing by default for non-seat0 seats (#69477) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- 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