From 5e97a459c7f1d97f416ee7cd1be7cb1643488527 Mon Sep 17 00:00:00 2001 From: El Date: Mon, 1 Jun 2026 13:09:30 +0000 Subject: [PATCH] Adjust no-data update condition --- common/rfb/SMsgWriter.cxx | 2 -- common/rfb/VNCSConnectionST.cxx | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/common/rfb/SMsgWriter.cxx b/common/rfb/SMsgWriter.cxx index ee1033f5b..260e44d38 100644 --- a/common/rfb/SMsgWriter.cxx +++ b/common/rfb/SMsgWriter.cxx @@ -284,8 +284,6 @@ bool SMsgWriter::needNoDataUpdate() return true; if (needExtendedDesktopSize || !extendedDesktopSizeMsgs.empty()) return true; - if (needSetCursor || needSetXCursor || needSetCursorWithAlpha || needSetVMWareCursor) - return true; return false; } diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx index 27f2fba22..35e899ff4 100644 --- a/common/rfb/VNCSConnectionST.cxx +++ b/common/rfb/VNCSConnectionST.cxx @@ -1414,7 +1414,7 @@ void VNCSConnectionST::writeFramebufferUpdate() void VNCSConnectionST::writeNoDataUpdate() { - if (!writer()->needNoDataUpdate()) + if (!writer()->needFakeUpdate()) return; writer()->writeNoDataUpdate();