diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-10-02 20:44:44 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-10-02 20:44:44 +0000 |
commit | 659e0bc92aa43838e532dadf8dbad79b25e16779 (patch) | |
tree | 2d0d1ce1f60d70c5e8bf0a4185d0688c8cd083b8 | |
parent | bd3d2802159b051aea079b7f98e3a72cedaefd45 (diff) |
Bug 358344 – autoscroll only works one way in fullscreen [PATCH] Patch
2006-10-02 Behdad Esfahbod <behdad@gnome.org>
Bug 358344 – autoscroll only works one way in fullscreen [PATCH]
Patch by Egmont Koblinger
* src/vte.c (vte_terminal_autoscroll),
(vte_terminal_motion_notify): Fix forward autoscrolling in fullscreen
mode.
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | src/vte.c | 6 |
2 files changed, 12 insertions, 3 deletions
@@ -1,3 +1,12 @@ +2006-10-02 Behdad Esfahbod <behdad@gnome.org> + + Bug 358344 – autoscroll only works one way in fullscreen [PATCH] + Patch by Egmont Koblinger + + * src/vte.c (vte_terminal_autoscroll), + (vte_terminal_motion_notify): Fix forward autoscrolling in fullscreen + mode. + 2006-09-20 Behdad Esfahbod <behdad@gnome.org> Bug 353756 – font setting cleanup @@ -5589,7 +5589,7 @@ vte_terminal_autoscroll(gpointer data) } #endif } - if (terminal->pvt->mouse_last_y > + if (terminal->pvt->mouse_last_y >= terminal->row_count * terminal->char_height) { if (terminal->adjustment) { /* Try to scroll up by one line. */ @@ -5618,7 +5618,7 @@ vte_terminal_autoscroll(gpointer data) if (terminal->pvt->mouse_last_y < 0 && !terminal->pvt->block_mode) { x = 0; } - if (terminal->pvt->mouse_last_y > ymax && !terminal->pvt->block_mode) { + if (terminal->pvt->mouse_last_y >= ymax && !terminal->pvt->block_mode) { x = terminal->column_count * terminal->char_width; } /* Extend selection to cover the newly-scrolled area. */ @@ -5727,7 +5727,7 @@ vte_terminal_motion_notify(GtkWidget *widget, GdkEventMotion *event) /* Start scrolling if we need to. */ if ((event->y < VTE_PAD_WIDTH) || - (event->y > (widget->allocation.height - VTE_PAD_WIDTH))) { + (event->y >= (terminal->row_count * terminal->char_height + VTE_PAD_WIDTH))) { switch (terminal->pvt->mouse_last_button) { case 1: if (!event_mode) { |