summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2002-08-28 04:16:48 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2002-08-28 04:16:48 +0000
commit00b80b8a6ed76d1242eef490707a6f4f16aebdff (patch)
tree820fd191f6835b5e0d02341c8f29129a3df47554 /src
parentac4cf6cdecbd7953b05c3daf2ab7f6614e5a83fe (diff)
downloadvte-00b80b8a6ed76d1242eef490707a6f4f16aebdff.tar.gz
Stop autoscrolling on button release.vte_0_8_10
* src/vte.c: Stop autoscrolling on button release.
Diffstat (limited to 'src')
-rw-r--r--src/vte.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vte.c b/src/vte.c
index e16b0eff..cb9783f3 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. */