[ 
https://issues.apache.org/jira/browse/GUACAMOLE-1626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17558135#comment-17558135
 ] 

Nick Couchman commented on GUACAMOLE-1626:
------------------------------------------

Thanks [~black_key] - if you're so inclined, you can submit a pull request to 
correct this.

> 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