From 00b80b8a6ed76d1242eef490707a6f4f16aebdff Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Wed, 28 Aug 2002 04:16:48 +0000 Subject: Stop autoscrolling on button release. * src/vte.c: Stop autoscrolling on button release. --- ChangeLog | 2 ++ src/vte.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 594bce3..b9f4c85 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,5 @@ +2002-08-27 nalin + * src/vte.c: Stop autoscrolling on button release. 2002-08-27 nalin * src/vte.c: When autoscrolling, clamp the new boundary to what the user can see. diff --git a/src/vte.c b/src/vte.c index e16b0ef..cb9783f 100644 --- a/src/vte.c +++ b/src/vte.c @@ -8358,6 +8358,11 @@ vte_terminal_button_release(GtkWidget *widget, GdkEventButton *event) if (event->button == 1) { vte_terminal_copy(terminal, GDK_SELECTION_PRIMARY); } + + /* Disconnect from autoscroll requests. */ + if (terminal->pvt->mouse_autoscroll_tag != -1) { + g_source_remove(terminal->pvt->mouse_autoscroll_tag); + } } /* Hilite any matches. */ -- cgit v1.2.3