From 324043eba6decc6d1b73c453299f5dab27f41621 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 16 Aug 2017 16:26:11 +0200 Subject: [PATCH] Support clients that only support alpha cursors --- common/rfb/VNCSConnectionST.cxx | 6 ++++-- 1 file 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(); -- 2.39.5