[vte/vte-0-36] emulation: Reset restricted scrolling on window resize



commit 8c65377993b110d124cbb8503110439b633ea39a
Author: Egmont Koblinger <egmont gmail com>
Date:   Tue Oct 22 23:57:24 2013 +0200

    emulation: Reset restricted scrolling on window resize
    
    Xterm disables restricted scrolling mode on window resize. This pretty much
    makes sense, since we have no clue how the application wishes to continue
    restricting the scrolling (counting the number of lines from the top or from
    the bottom).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710484

 src/vte.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 9e982a1..0dff582 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -8107,6 +8107,8 @@ vte_terminal_screen_set_size(VteTerminal *terminal, VteScreen *screen, glong old
                        _vte_ring_delta(ring), _vte_ring_next(ring),
                        screen->insert_delta, screen->scroll_delta);
 
+       screen->scrolling_restricted = FALSE;
+
        if (old_rows > terminal->row_count &&
            screen->insert_delta + old_rows > screen->cursor_current.row + 1) {
                /* Shrinking the window, cursor was not at the bottom.


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