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>
This commit is contained in:
MagnaboscoL 2020-06-09 18:24:40 +02:00 committed by Lars Knoll
parent 2732231182
commit f76530a617

View File

@ -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)