GUACAMOLE-1256: Flush display immediately after copy to avoid conflic with cursor commit.

This commit is contained in:
corentin-soriano 2024-06-18 08:21:13 +02:00
parent 22338ea46a
commit 8ba29b25e7
No known key found for this signature in database

View File

@ -924,6 +924,10 @@ int guac_terminal_scroll_up(guac_terminal* term,
end_row - amount + 1, 0,
end_row, term->term_width - 1);
/* Flush display copy before the cursor commit override operation
* type for visible cursor row and breaks display. */
guac_terminal_display_flush(term->display);
return 0;
}
@ -937,6 +941,10 @@ int guac_terminal_scroll_down(guac_terminal* term,
start_row, 0,
start_row + amount - 1, term->term_width - 1);
/* Flush display copy before the cursor commit override operation
* type for visible cursor row and breaks display. */
guac_terminal_display_flush(term->display);
return 0;
}