Application should hide cursor. Do not require CSS class definitions.
authorMichael Jumper <zhangmaike@users.sourceforge.net>
Wed, 15 Feb 2012 18:17:27 +0000 (10:17 -0800)
committerMichael Jumper <zhangmaike@users.sourceforge.net>
Wed, 15 Feb 2012 18:17:27 +0000 (10:17 -0800)
src/main/resources/guacamole.js

index 3881c15..a9fcbed 100644 (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";