[PATCH kdrive/ephyr v8 3/4] ephyr: enable option -sw-cursor by default in multi-seat mode

Laércio de Sousa laerciosousa at sme-mogidascruzes.sp.gov.br
Fri Feb 12 16:18:01 UTC 2016


Option -seat passed to Xephyr requires -sw-cursor to
be passed as well, otherwise the mouse cursor will remain
invisible for the given seat. This patch takes care of
enabling -sw-cursor if -seat is passed.

Signed-off-by: Laércio de Sousa <laerciosousa at sme-mogidascruzes.sp.gov.br>
---
 hw/kdrive/ephyr/ephyrinit.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/kdrive/ephyr/ephyrinit.c b/hw/kdrive/ephyr/ephyrinit.c
index 849a4e1..149ea98 100644
--- a/hw/kdrive/ephyr/ephyrinit.c
+++ b/hw/kdrive/ephyr/ephyrinit.c
@@ -373,6 +373,9 @@ OsVendorInit(void)
 {
     EPHYR_DBG("mark");
 
+    if (SeatId)
+        hostx_use_sw_cursor();
+
     if (hostx_want_host_cursor())
         ephyrFuncs.initCursor = &ephyrCursorInit;
 
-- 
2.7.1



More information about the xorg-devel mailing list