From: Pierre Ossman Date: Mon, 30 Dec 2019 08:30:00 +0000 (+0100) Subject: Allow cursor to be updated while connecting X-Git-Tag: v1.2.0~51 X-Git-Url: https://git.proxmox.com/?p=mirror_novnc.git;a=commitdiff_plain;h=49db41ea4be69753b5480559839cf031d52a1241 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. --- diff --git a/core/rfb.js b/core/rfb.js index 6f717bd..e3e3a0f 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -1875,7 +1875,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,