xorg-x11-server/U_ephyr-ignore-Xorg-multiseat-command-line-options.patch
Egbert Eich 7aff496244 Accepting request 367497 from home:lbssousa:branches:X11:XOrg
- Backport upstream patches for Xephyr input hot-plugging /
  single-GPU multi-seat support:
    * U_kdrive-fix-up-NewInputDeviceRequest-implementation.patch
    * U_kdrive-set-evdev-driver-for-input-devices-automatica.patch
    * U_ephyr-don-t-load-ephyr-input-driver-if-seat-option-i.patch
    * U_kdrive-don-t-let-evdev-driver-overwrite-existing-dev.patch
    * U_ephyr-ignore-Xorg-multiseat-command-line-options.patch
    * U_ephyr-enable-option-sw-cursor-by-default-in-multi-se.patch
    * U_kdrive-introduce-input-hot-plugging-support-for-udev.patch
    * U_kdrive-add-options-to-set-default-XKB-properties.patch
    * U_kdrive-evdev-update-keyboard-LEDs-22302.patch
    * U_config-udev-distinguish-between-real-keyboards-and-o.patch

OBS-URL: https://build.opensuse.org/request/show/367497
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xorg-x11-server?expand=0&rev=616
2016-03-07 11:29:08 +00:00

44 lines
1.4 KiB
Diff

From 7213e99cbc38a60f0076bc2115b144798ea4c3ba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?La=C3=A9rcio=20de=20Sousa?=
<laerciosousa@sme-mogidascruzes.sp.gov.br>
Date: Fri, 11 Dec 2015 11:43:13 -0200
Subject: [PATCH 03/56] ephyr: ignore Xorg multiseat command line options
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Multi-seat-capable display managers commonly pass command-line options
like "-novtswitch", "-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.
[ajax: shortened summary]
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Laércio de Sousa <laerciosousa@sme-mogidascruzes.sp.gov.br>
---
hw/kdrive/ephyr/ephyrinit.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/hw/kdrive/ephyr/ephyrinit.c b/hw/kdrive/ephyr/ephyrinit.c
index 6b6c4b1..9ddf86e 100644
--- a/hw/kdrive/ephyr/ephyrinit.c
+++ b/hw/kdrive/ephyr/ephyrinit.c
@@ -356,6 +356,13 @@ ddxProcessArgument(int argc, char **argv, int i)
EphyrWantNoHostGrab = 1;
return 1;
}
+ else if (!strcmp(argv[i], "-sharevts") ||
+ !strcmp(argv[i], "-novtswitch")) {
+ return 1;
+ }
+ else if (!strcmp(argv[i], "-layout")) {
+ return 2;
+ }
return KdProcessArgument(argc, argv, i);
}
--
2.6.2