From f76530a6171ca417865863b66e3ea439c27d057e Mon Sep 17 00:00:00 2001 From: MagnaboscoL Date: Tue, 9 Jun 2020 18:24:40 +0200 Subject: Fix the initial cursor state for the VNC plugin Ensure that we show a cursor directly after a client connects. Fixes: QTBUG-85006 Pick-to: 5.15 Change-Id: Icb604beb1b0ca2e7efa42ac01c2aac0a3e002865 Reviewed-by: Andy Nichols --- src/plugins/platforms/vnc/qvnc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/platforms/vnc/qvnc.cpp b/src/plugins/platforms/vnc/qvnc.cpp index 7d8649d12f..d1dc6634af 100644 --- a/src/plugins/platforms/vnc/qvnc.cpp +++ b/src/plugins/platforms/vnc/qvnc.cpp @@ -606,8 +606,11 @@ void QVncClientCursor::changeCursor(QCursor *widgetCursor, QWindow *window) void QVncClientCursor::addClient(QVncClient *client) { - if (!clients.contains(client)) + if (!clients.contains(client)) { clients.append(client); + // Force a cursor update when the client connects. + client->setDirtyCursor(); + } } uint QVncClientCursor::removeClient(QVncClient *client) -- cgit v1.2.3