From 83347282eb88286aa9224dfebf6250c4e8b54817 Mon Sep 17 00:00:00 2001 From: Matt McClaskey Date: Fri, 9 Feb 2024 10:46:50 -0500 Subject: [PATCH] KASM-5609 fixed artifacts after screen movements (#99) Co-authored-by: mattmcclaskey --- core/rfb.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/rfb.js b/core/rfb.js index ed2719ee..12a99583 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -175,6 +175,7 @@ export default class RFB extends EventTargetMixin { this._disconnTimer = null; // disconnection timer this._resizeTimeout = null; // resize rate limiting this._mouseMoveTimer = null; + this._forceFullFrameUpdateTimeout = null; // Decoder states this._decoders = {}; @@ -4141,6 +4142,14 @@ export default class RFB extends EventTargetMixin { this._resize(this._FBU.width, this._FBU.height); } + // There are certain conditions with multi-monitor that warrent forcing a full frame update after a delay + if (this._display.screens.length > 1) { + clearTimeout(this._forceFullFrameUpdateTimeout); + this._forceFullFrameUpdateTimeout = setTimeout(function(){ + RFB.messages.fbUpdateRequest(this._sock, false, 0, 0, this._fbWidth, this._fbHeight) + }.bind(this), 500); + } + return true; }