[ 
https://issues.apache.org/jira/browse/GUACAMOLE-1626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

luo updated GUACAMOLE-1626:
---------------------------
    Affects Version/s: 1.4.0
                           (was: 1.3.0)
          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
{code:java}
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;
.......................
} {code}

  was:
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)
{code:java}
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;
.......................
} {code}


> term->mouse_mask is not initialized
> -----------------------------------
>
>                 Key: GUACAMOLE-1626
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1626
>             Project: Guacamole
>          Issue Type: Improvement
>          Components: guacd
>    Affects Versions: 1.4.0
>            Reporter: luo
>            Priority: Trivial
>
> 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
> {code:java}
> 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;
> .......................
> } {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to