[vte/vte-0-36] widget: Fix a rare display update problem after a terminal reset



commit 781480fe81cca3b66e02bdb9d34bbacc822f3496
Author: Egmont Koblinger <egmont gmail com>
Date:   Mon May 26 12:54:55 2014 +0200

    widget: Fix a rare display update problem after a terminal reset
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730599
    (cherry picked from commit 8fbb9722099fa4af01cfb16919fe61282a7aa9ab)

 src/vte.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index f59648b..b23b209 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -13642,7 +13642,7 @@ vte_terminal_set_scrollback_lines(VteTerminal *terminal, glong lines)
                }
        }
 
-       /* Adjust the scrollbars to the new locations. */
+       /* Adjust the scrollbar to the new location. */
        /* Hack: force a change in scroll_delta even if the value remains, so that
           vte_term_q_adj_val_changed() doesn't shortcut to no-op, see bug 676075. */
        terminal->pvt->screen->scroll_delta = -1;
@@ -13941,6 +13941,11 @@ vte_terminal_reset(VteTerminal *terminal,
                pvt->alternate_screen.cursor_current.col = 0;
                pvt->alternate_screen.scroll_delta = 0;
                pvt->alternate_screen.insert_delta = 0;
+                /* Adjust the scrollbar to the new location. */
+                /* Hack: force a change in scroll_delta even if the value remains, so that
+                   vte_term_q_adj_val_changed() doesn't shortcut to no-op, see bug 730599. */
+                pvt->screen->scroll_delta = -1;
+                vte_terminal_queue_adjustment_value_changed (terminal, 0);
                _vte_terminal_adjust_adjustments_full (terminal);
        }
        /* Clear the status lines. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]