From 89dd19931744f055f250b66991e7b60f31c45ba9 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 30 Dec 2019 09:30:00 +0100 Subject: [PATCH] Allow cursor to be updated while connecting We haven't got a server provided cursor at this point, but we might have done something local, e.g. enabled the dot cursor. --- kasmweb/core/rfb.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kasmweb/core/rfb.js b/kasmweb/core/rfb.js index 9254fc8..9445ab4 100644 --- a/kasmweb/core/rfb.js +++ b/kasmweb/core/rfb.js @@ -2071,7 +2071,10 @@ export default class RFB extends EventTargetMixin { } _refreshCursor() { - if (this._rfb_connection_state !== 'connected') { return; } + if (this._rfb_connection_state !== "connecting" && + this._rfb_connection_state !== "connected") { + return; + } const image = this._shouldShowDotCursor() ? RFB.cursors.dot : this._cursorImage; this._cursor.change(image.rgbaPixels, image.hotx, image.hoty,