[PATCH RFC 2/5] ephyr: ignore "-sharevts" and "-layout seatXXXX" command-line options
Laércio de Sousa
laerciosousa at sme-mogidascruzes.sp.gov.br
Wed Mar 25 11:31:38 PDT 2015
Multiseat-capable display managers commonly pass command-line options
like "-sharevts" or "-layout seatXXXX" to Xorg server, but Xephyr
currently refuses to start if these options are passed to it,
which may break Xephyr-based single-GPU multiseat setups.
The simplest solution to avoid this problem is making Xephyr
ignore such options.
Signed-off-by: Laércio de Sousa <laerciosousa at sme-mogidascruzes.sp.gov.br>
---
hw/kdrive/ephyr/ephyrinit.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/hw/kdrive/ephyr/ephyrinit.c b/hw/kdrive/ephyr/ephyrinit.c
index d1e2237..cbfb979 100644
--- a/hw/kdrive/ephyr/ephyrinit.c
+++ b/hw/kdrive/ephyr/ephyrinit.c
@@ -386,6 +386,12 @@ ddxProcessArgument(int argc, char **argv, int i)
UseMsg();
exit(1);
}
+ else if (!strcmp(argv[i], "-sharevts")) {
+ return 1;
+ }
+ else if (!strcmp(argv[i], "-layout")) {
+ return 2;
+ }
return KdProcessArgument(argc, argv, i);
}
--
2.2.0
More information about the xorg-devel
mailing list