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 <lbsous...@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

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to