From 8ba29b25e78235c0fd72361d75ef3e2e4bd83f22 Mon Sep 17 00:00:00 2001 From: corentin-soriano Date: Tue, 18 Jun 2024 08:21:13 +0200 Subject: [PATCH] GUACAMOLE-1256: Flush display immediately after copy to avoid conflic with cursor commit. --- src/terminal/terminal.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/terminal/terminal.c b/src/terminal/terminal.c index 60dff20f..192c85a1 100644 --- a/src/terminal/terminal.c +++ b/src/terminal/terminal.c @@ -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; }