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

term->mouse_mask is not initialized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Duplicate
    • 1.4.0
    • None
    • guacd
    • None

    Description

      term->mouse_mask is a random value, when we use ssh, the first time we put the mouse on the screen, moving the mouse may be considered as a right click (paste)

      in terminal.c

      static int __guac_terminal_send_mouse(guac_terminal* term, guac_user* user,
              int x, int y, int mask) {    /* Ignore user input if terminal is not started */
          if (!term->started) {
              guac_client_log(term->client, GUAC_LOG_DEBUG, "Ignoring user input "
                      "while terminal has not yet started.");
              return 0;
          }    /* Determine which buttons were just released and pressed */
          int released_mask =  term->mouse_mask & ~mask;
          int pressed_mask  = ~term->mouse_mask &  mask;
      .......................
      } 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              black_key luo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: