diff src/xterm.c @ 50177:297925dd73b1

New approach to scrolling and scroll bars for better redraw and smoother scroll bar behaviour.
author Jan Djärv <jan.h.d@swipnet.se>
date Mon, 17 Mar 2003 23:03:53 +0000
parents 0e12b5894d99
children 160bd7db88a1
line wrap: on
line diff
--- a/src/xterm.c	Mon Mar 17 18:56:53 2003 +0000
+++ b/src/xterm.c	Mon Mar 17 23:03:53 2003 +0000
@@ -6395,7 +6395,7 @@
 
 #else /* !USE_MOTIF, i.e. Xaw or GTK */
 #ifdef USE_GTK
-/* Scroll bar callback for Gtk scroll bars.  WIDGET is the scroll
+/* Scroll bar callback for GTK scroll bars.  WIDGET is the scroll
    bar adjustment widget.  DATA is a pointer to the scroll_bar structure. */
 
 static void
@@ -6453,13 +6453,12 @@
     {
       part = scroll_bar_handle;
       whole = adj->upper - adj->page_size;
-      portion = min (position, whole);
-      bar->dragging = make_number (portion);
+      portion = min ((int)position, whole);
+      bar->dragging = make_number ((int)portion);
     }
 
   if (part >= 0)
     {
-      xg_ignore_next_thumb = 1;
       window_being_scrolled = bar->window;
       last_scroll_bar_part = part;
       x_send_scroll_bar_event (bar->window, part, portion, whole);