this._cursor_uri = true;
}
Util.Info("Data URI scheme cursor supported");
+ this._target.style.cursor = curSave;
} else {
if (this._cursor_uri === null || this._cursor_uri === undefined) {
this._cursor_uri = false;
}
Util.Warn("Data URI scheme cursor not supported");
+ this._target.style.cursor = "none";
}
- this._target.style.cursor = curSave;
} catch (exc) {
Util.Error("Data URI scheme cursor test exception: " + exc);
this._cursor_uri = false;
this._target.style.cursor = "default";
},
+ disableLocalCursor: function () {
+ this._target.style.cursor = "none";
+ },
+
// Overridden getters/setters
get_context: function () {
return this._drawCtx;
if (this._display && this._display.get_context()) {
this._keyboard.ungrab();
this._mouse.ungrab();
- this._display.defaultCursor();
+ if (state !== 'connect' && state !== 'loaded') {
+ this._display.defaultCursor();
+ }
if (Util.get_logging() !== 'debug' || state === 'loaded') {
// Show noVNC logo on load and when disconnected, unless in
// debug mode
RFB.prototype.set_local_cursor = function (cursor) {
if (!cursor || (cursor in {'0': 1, 'no': 1, 'false': 1})) {
this._local_cursor = false;
+ this._display.disableLocalCursor(); //Only show server-side cursor
} else {
if (this._display.get_cursor_uri()) {
this._local_cursor = true;