]> source.dussan.org Git - tigervnc.git/commitdiff
Support clients that only support alpha cursors
authorPierre Ossman <ossman@cendio.se>
Wed, 16 Aug 2017 14:26:11 +0000 (16:26 +0200)
committerPierre Ossman <ossman@cendio.se>
Wed, 16 Aug 2017 14:26:11 +0000 (16:26 +0200)
common/rfb/VNCSConnectionST.cxx

index d2206f9ba6014a37de2c07a06e67ba3e158d22f5..53dd364a6ad89a307a631a6e0d273de294b8f882 100644 (file)
@@ -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();