Application should hide cursor. Do not require CSS class definitions.

This commit is contained in:
Michael Jumper
2012-02-15 10:17:27 -08:00
parent f6bf6c4aaa
commit ebc5caac28

View File

@@ -123,18 +123,10 @@ Guacamole.Client = function(tunnel) {
var cursorHotspotX = 0;
var cursorHotspotY = 0;
var cursorHidden = 0;
function moveCursor(x, y) {
var element = cursor.getElement();
// Hide hardware cursor
if (cursorHidden == 0) {
display.className += " guac-hide-cursor";
cursorHidden = 1;
}
// Update rect
element.style.left = (x - cursorHotspotX) + "px";
element.style.top = (y - cursorHotspotY) + "px";