forked from pool/xorg-x11-server
38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
|
From 851ff9ec04b73412c7dbad7b4911a1feac21f354 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?La=C3=A9rcio=20de=20Sousa?=
|
||
|
<laerciosousa@sme-mogidascruzes.sp.gov.br>
|
||
|
Date: Fri, 12 Feb 2016 14:18:01 -0200
|
||
|
Subject: [PATCH 55/56] ephyr: enable option -sw-cursor by default in
|
||
|
multi-seat mode
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
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.
|
||
|
|
||
|
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 | 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.6.2
|
||
|
|