Skip to content

Commit

Permalink
GUACAMOLE-1944: Merge display margin only affects the default layer a…
Browse files Browse the repository at this point in the history
…nd not scrollbar layer
  • Loading branch information
necouchman authored Jun 14, 2024
2 parents d17c427 + 917fd36 commit eb9c9f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/terminal/terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1885,10 +1885,6 @@ static void guac_terminal_double_click(guac_terminal* terminal, int row, int col
static int __guac_terminal_send_mouse(guac_terminal* term, guac_user* user,
int x, int y, int mask) {

/* Remove display margin from mouse position without going below 0 */
y = y >= term->display->margin ? y - term->display->margin : 0;
x = x >= term->display->margin ? x - term->display->margin : 0;

/* Ignore user input if terminal is not started */
if (!term->started) {
guac_client_log(term->client, GUAC_LOG_DEBUG, "Ignoring user input "
Expand Down Expand Up @@ -1918,6 +1914,10 @@ static int __guac_terminal_send_mouse(guac_terminal* term, guac_user* user,

}

/* Remove display margin from mouse position without going below 0 */
y = y >= term->display->margin ? y - term->display->margin : 0;
x = x >= term->display->margin ? x - term->display->margin : 0;

term->mouse_mask = mask;

/* Show mouse cursor if not already shown */
Expand Down

0 comments on commit eb9c9f3

Please sign in to comment.