1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-10 05:30:45 -08:00

(x_set_toolkit_scroll_bar_thumb): Fix previous change.

This commit is contained in:
Gerd Moellmann 1999-07-29 15:09:42 +00:00
parent e2ee551e3b
commit eb3935300f

View 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;