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:
parent
2732231182
commit
f76530a617
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user