Fixed issue with moving cursor when icon updates.
authorMichael Jumper <zhangmaike@users.sourceforge.net>
Tue, 17 May 2011 20:32:32 +0000 (13:32 -0700)
committerMichael Jumper <zhangmaike@users.sourceforge.net>
Tue, 17 May 2011 20:32:32 +0000 (13:32 -0700)
src/main/resources/guacamole.js

index 688f225..5ab4e89 100644 (file)
@@ -309,7 +309,10 @@ function GuacamoleClient(display, tunnel) {
                 cursorImage = image;
                 cursorHotspotX = x;
                 cursorHotspotY = y;
-                redrawCursor(cursorRectX, cursorRectY);
+                redrawCursor(
+                    cursorRectX + cursorHotspotX,
+                    cursorRectY + cursorHotspotY
+                );
             };
             image.src = "data:image/png;base64," + data