From 17097258bdba66a449f6c690090a2b536c80b17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Dj=C3=A4rv?= Date: Mon, 17 Mar 2003 23:03:53 +0000 Subject: New approach to scrolling and scroll bars for better redraw and smoother scroll bar behaviour. --- src/xterm.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/xterm.c') diff --git a/src/xterm.c b/src/xterm.c index 380e4c73d7c..3aac2aeaf67 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -6395,7 +6395,7 @@ xm_scroll_callback (widget, client_data, call_data) #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 @@ xg_scroll_callback (widget, data) { 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); -- cgit v1.2.1