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.
This commit is contained in:
Pierre Ossman 2019-12-30 09:30:00 +01:00
parent d507d1415e
commit 49db41ea4b
1 changed files with 4 additions and 1 deletions

View File

@ -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,