Skip to content

Fix crash when setting override cursor on multiple clients

When a client disconnects, we need to disable its client cursor, otherwise there will be a dangling pointer stored in the pointer.

In addition, we should reinstate the default cursor only when all clients have disconnected.

Note: Patch provided in bug report.

[ChangeLog][vnc] Fixed a crash when setting an override cursor on multiple clients.

Pick-to: 5.15 6.2 6.4 Fixes: QTBUG-105057 Change-Id: I0399087a924c05c8d0811b0ec0305b7857da5d3c Reviewed-by: Volker Hilsheimer (cherry picked from commit 9b6e79ab)

Merge request reports