GUACAMOLE-1256: Merge correction to latency regression from terminal rendering bug workaround.

This commit is contained in:
Mike Jumper 2024-12-18 09:58:34 -08:00 committed by GitHub
commit af7ed38d8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View File

@ -480,6 +480,11 @@ void guac_terminal_display_set_columns(guac_terminal_display* display, int row,
/* For each column in range */
for (int col = start_column; col <= end_column; col += character->width) {
/* Flush pending copy operation before adding new SET operation. This
* avoid operation conflicts that cause inconsistent display. */
if (current->type == GUAC_CHAR_COPY)
guac_terminal_display_flush(display);
/* Set operation */
current->type = GUAC_CHAR_SET;
current->character = *character;

View File

@ -875,10 +875,6 @@ void 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);
}
int guac_terminal_clear_columns(guac_terminal* term,