diff options
author | Pierre Ossman <ossman@cendio.se> | 2019-12-30 09:30:00 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2019-12-30 09:30:00 +0100 |
commit | 49db41ea4be69753b5480559839cf031d52a1241 (patch) | |
tree | 1ae3dac2678f21369f7ce8cf17eca93cb4618a48 | |
parent | d507d1415eff9fce16fb67963f34a1aa1ecb1fe4 (diff) | |
download | novnc-49db41ea4be69753b5480559839cf031d52a1241.tar.gz |
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.
-rw-r--r-- | core/rfb.js | 5 |
1 files changed, 4 insertions, 1 deletions
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, |