]> code.delx.au - gnu-emacs/commitdiff
(x_set_toolkit_scroll_bar_thumb): Fix previous change.
authorGerd Moellmann <gerd@gnu.org>
Thu, 29 Jul 1999 15:09:42 +0000 (15:09 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 29 Jul 1999 15:09:42 +0000 (15:09 +0000)
src/xterm.c

index 6acc03e51f6cfa93ba661bed832d2d278f41e1b8..e6b03347d66114ab07dcc546ae8de21f2e28cca6 100644 (file)
@@ -7469,7 +7469,13 @@ x_set_toolkit_scroll_bar_thumb (bar, portion, position, whole)
        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;