aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/rfb/VNCSConnectionST.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx
index 619b0a24..bd4bc366 100644
--- a/common/rfb/VNCSConnectionST.cxx
+++ b/common/rfb/VNCSConnectionST.cxx
@@ -834,12 +834,10 @@ void VNCSConnectionST::enableContinuousUpdates(bool enable,
void VNCSConnectionST::supportsLocalCursor()
{
- if (cp.supportsLocalCursorWithAlpha ||
- cp.supportsLocalCursor || cp.supportsLocalXCursor) {
- if (!damagedCursorRegion.is_empty())
- removeRenderedCursor = true;
- setCursor();
- }
+ bool hasRenderedCursor = !damagedCursorRegion.is_empty();
+ if (hasRenderedCursor && !needRenderedCursor())
+ removeRenderedCursor = true;
+ setCursor();
}
void VNCSConnectionST::supportsFence()