diff options
author | MagnaboscoL <magnabosco.luca@gmail.com> | 2020-06-09 18:24:40 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-10-17 12:02:24 +0200 |
commit | f76530a6171ca417865863b66e3ea439c27d057e (patch) | |
tree | c1276b89f72d339d9820735d46d10b53d3ae2cd7 /src/plugins | |
parent | 2732231182d9bcfdd613cc86f70e578e82b7c2aa (diff) |
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 <andy.nichols@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/vnc/qvnc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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) |