aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2017-08-16 16:26:11 +0200
committerPierre Ossman <ossman@cendio.se>2017-08-16 16:26:11 +0200
commit324043eba6decc6d1b73c453299f5dab27f41621 (patch)
tree8313563aacc93f2f7d0d38599b2ab79899aa459c
parenta8ecb793b2729e8b71d01f4a05ab21269ba5a91a (diff)
downloadtigervnc-324043eba6decc6d1b73c453299f5dab27f41621.tar.gz
tigervnc-324043eba6decc6d1b73c453299f5dab27f41621.zip
Support clients that only support alpha cursors
-rw-r--r--common/rfb/VNCSConnectionST.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx
index d2206f9b..53dd364a 100644
--- a/common/rfb/VNCSConnectionST.cxx
+++ b/common/rfb/VNCSConnectionST.cxx
@@ -380,7 +380,8 @@ bool VNCSConnectionST::needRenderedCursor()
if (state() != RFBSTATE_NORMAL)
return false;
- if (!cp.supportsLocalCursor && !cp.supportsLocalXCursor)
+ if (!cp.supportsLocalCursorWithAlpha &&
+ !cp.supportsLocalCursor && !cp.supportsLocalXCursor)
return true;
if (!server->cursorPos.equals(pointerEventPos) &&
(time(0) - pointerEventTime) > 0)
@@ -725,7 +726,8 @@ void VNCSConnectionST::enableContinuousUpdates(bool enable,
void VNCSConnectionST::supportsLocalCursor()
{
- if (cp.supportsLocalCursor || cp.supportsLocalXCursor) {
+ if (cp.supportsLocalCursorWithAlpha ||
+ cp.supportsLocalCursor || cp.supportsLocalXCursor) {
if (!damagedCursorRegion.is_empty())
removeRenderedCursor = true;
setCursor();