Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-534

Mouse cursor goes out of sync when VNC display is scaled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • None
    • None
    • guacamole-common-js
    • None

    Description

      I'm using guacamole-common-js to write a JS client to connect to a remote desktop via VNC protocol. Following is the code I use to add Guacamole client to the display div. I'm using the scale() function to scale the VNC window. 

      var display = document.getElementById("display");
      var guac = new Guacamole.Client(new Guacamole.HTTPTunnel("tunnel"));
      display.appendChild(guac.getDisplay().getElement());
      display.scale(0.9);

      When I do this the mouse cursor is going out of sync. There is a gap between the actual cursor and the remote cursor. I could fix this by correcting the mouse position in the sendMouseState() function of Client module. I have attached the scaleFix.diff file which includes this fix. I hope this would be useful.

      Attachments

        1. scaleFix.diff
          1 kB
          Charitha Dandeniya Arachchige

        Activity

          People

            Unassigned Unassigned
            chari Charitha Dandeniya Arachchige
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: