summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2019-12-30 09:30:00 +0100
committerPierre Ossman <ossman@cendio.se>2019-12-30 09:30:00 +0100
commit49db41ea4be69753b5480559839cf031d52a1241 (patch)
tree1ae3dac2678f21369f7ce8cf17eca93cb4618a48
parentd507d1415eff9fce16fb67963f34a1aa1ecb1fe4 (diff)
downloadnovnc-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.js5
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,