# HG changeset patch # User Gerd Moellmann # Date 933260982 0 # Node ID 6b42357f28f9afe733edc7230c71f1100639edb7 # Parent 2e3da138463f1424c6f68afafe37b84f44519153 (x_set_toolkit_scroll_bar_thumb): Fix previous change. diff -r 2e3da138463f -r 6b42357f28f9 src/xterm.c --- a/src/xterm.c Thu Jul 29 11:01:50 1999 +0000 +++ b/src/xterm.c Thu Jul 29 15:09:42 1999 +0000 @@ -7469,7 +7469,13 @@ check that your system's configuration file contains a define for `NARROWPROTO'. See s/freebsd.h for an example. */ if (NILP (bar->dragging)) - XawScrollbarSetThumb (widget, top, shown); + { + float old_top, old_shown; + XtVaGetValues (widget, XtNtopOfThumb, &old_top, XtNshown, &old_shown, + NULL); + if (top != old_top || shown != old_shown) + XawScrollbarSetThumb (widget, top, shown); + } else { ScrollbarWidget sb = (ScrollbarWidget) widget;