summaryrefslogtreecommitdiffstats
path: root/webclients/novnc/include/rfb.js
diff options
context:
space:
mode:
Diffstat (limited to 'webclients/novnc/include/rfb.js')
-rw-r--r--webclients/novnc/include/rfb.js17
1 files changed, 8 insertions, 9 deletions
diff --git a/webclients/novnc/include/rfb.js b/webclients/novnc/include/rfb.js
index cba015d..59fd785 100644
--- a/webclients/novnc/include/rfb.js
+++ b/webclients/novnc/include/rfb.js
@@ -46,7 +46,7 @@ var RFB;
['DesktopSize', -223 ],
['Cursor', -239 ],
- // Pseudo-encoding settings
+ // Psuedo-encoding settings
//['JPEG_quality_lo', -32 ],
['JPEG_quality_med', -26 ],
//['JPEG_quality_hi', -23 ],
@@ -252,12 +252,12 @@ var RFB;
Util.Info("Sending Ctrl-Alt-Del");
var arr = [];
- arr = arr.concat(RFB.messages.keyEvent(0xFFE3, 1)); // Control
- arr = arr.concat(RFB.messages.keyEvent(0xFFE9, 1)); // Alt
- arr = arr.concat(RFB.messages.keyEvent(0xFFFF, 1)); // Delete
- arr = arr.concat(RFB.messages.keyEvent(0xFFFF, 0)); // Delete
- arr = arr.concat(RFB.messages.keyEvent(0xFFE9, 0)); // Alt
- arr = arr.concat(RFB.messages.keyEvent(0xFFE3, 0)); // Control
+ arr = arr.concat(RFB.messages.keyEvent(XK_Control_L, 1));
+ arr = arr.concat(RFB.messages.keyEvent(XK_Alt_L, 1));
+ arr = arr.concat(RFB.messages.keyEvent(XK_Delete, 1));
+ arr = arr.concat(RFB.messages.keyEvent(XK_Delete, 0));
+ arr = arr.concat(RFB.messages.keyEvent(XK_Alt_L, 0));
+ arr = arr.concat(RFB.messages.keyEvent(XK_Control_L, 0));
this._sock.send(arr);
},
@@ -1496,8 +1496,7 @@ var RFB;
// Weird: ignore blanks are RAW
Util.Debug(" Ignoring blank after RAW");
} else {
- this._display.fillRect(x, y, w, h, rQ, rQi);
- rQi += this._FBU.bytes - 1;
+ this._display.fillRect(x, y, w, h, this._FBU.background);
}
} else if (this._FBU.subencoding & 0x01) { // Raw
this._display.blitImage(x, y, w, h, rQ, rQi);