aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2016-12-05 17:00:35 +0100
committerPierre Ossman <ossman@cendio.se>2017-02-24 13:17:25 +0100
commit5c03720319d907f2427ed4296ceaec7ee2c06719 (patch)
treec5f8f33e5fa551a865ac9ab9f99624039736b17e /common
parent24684e58f450d2653b1ab400396dbfb3034d90a9 (diff)
downloadtigervnc-5c03720319d907f2427ed4296ceaec7ee2c06719.tar.gz
tigervnc-5c03720319d907f2427ed4296ceaec7ee2c06719.zip
Avoid flicker with a rendered cursor
This is not the code path commonly used in performance sensitive scenarios, so favour correctness over performance.
Diffstat (limited to 'common')
-rw-r--r--common/rfb/VNCSConnectionST.cxx13
1 files changed, 4 insertions, 9 deletions
diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx
index ea50f832..8d19acb7 100644
--- a/common/rfb/VNCSConnectionST.cxx
+++ b/common/rfb/VNCSConnectionST.cxx
@@ -1080,15 +1080,10 @@ void VNCSConnectionST::writeDataUpdate()
cursor = NULL;
}
- // We could remove the new cursor rect from updates here. It's not clear
- // whether this is worth it. If we do remove it, then we won't draw over
- // the same bit of screen twice, but we have the overhead of a more complex
- // region.
-
- //if (cursor) {
- // updates.subtract(renderedCursorRect);
- // updates.getUpdateInfo(&ui, req);
- //}
+ if (cursor) {
+ updates.subtract(renderedCursorRect);
+ updates.getUpdateInfo(&ui, req);
+ }
damagedCursorRegion.assign_union(renderedCursorRect);
updateRenderedCursor = false;