summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMagnaboscoL <magnabosco.luca@gmail.com>2020-06-09 18:24:40 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-10-17 21:00:02 +0000
commit53cf0644b4c2661cd712e606ce26822fc38aa450 (patch)
tree44525478a743fe7162b6146b4104544a920671d7
parent75fb810340ed2eca7e37af550401509510450195 (diff)
Fix the initial cursor state for the VNC plugin
Ensure that we show a cursor directly after a client connects. Fixes: QTBUG-85006 Change-Id: Icb604beb1b0ca2e7efa42ac01c2aac0a3e002865 Reviewed-by: Andy Nichols <andy.nichols@qt.io> (cherry picked from commit f76530a6171ca417865863b66e3ea439c27d057e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/plugins/platforms/vnc/qvnc.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/platforms/vnc/qvnc.cpp b/src/plugins/platforms/vnc/qvnc.cpp
index ad06ca3245..28c45af714 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)