[vte/vte-0-56] widget: Cancel autoscroll on ending selecting



commit 52e546badeedf12dbbd7706042f1d0f3a9e4f0b3
Author: Egmont Koblinger <egmont gmail com>
Date:   Mon Apr 8 22:58:54 2019 +0200

    widget: Cancel autoscroll on ending selecting
    
    https://gitlab.gnome.org/GNOME/vte/issues/105

 src/vte.cc | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/vte.cc b/src/vte.cc
index af01264e..0aa9a3fc 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -6651,6 +6651,7 @@ Terminal::maybe_end_selection()
                         widget_copy(VTE_SELECTION_PRIMARY, VTE_FORMAT_TEXT);
                        emit_selection_changed();
                }
+                stop_autoscroll();  /* Required before setting m_selecting to false, see #105. */
                m_selecting = false;
 
                /* Reconnect to input from the child if we paused it. */
@@ -9952,6 +9953,7 @@ Terminal::reset(bool clear_tabstops,
         /* Reset the visual bits of selection on hard reset, see bug 789954. */
         if (clear_history) {
                 deselect_all();
+                stop_autoscroll();  /* Required before setting m_selecting to false, see #105. */
                 m_selecting = FALSE;
                 m_selecting_had_delta = FALSE;
                 m_selection_origin = m_selection_last = { -1, -1, 1 };


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