--- Xaw3d-1.5/xc/lib/Xaw3d/Scrollbar.c.orig 2003-11-26 19:42:29.000000000 +0100 +++ Xaw3d-1.5/xc/lib/Xaw3d/Scrollbar.c 2003-11-26 19:46:13.000000000 +0100 @@ -300,9 +300,8 @@ /* ARGSUSED */ static void -_ShadowSurroundedBox (gw, event, region, xtl, ytl, xbr, ybr, out) +_ShadowSurroundedBox (gw, region, xtl, ytl, xbr, ybr, out) Widget gw; - XEvent *event; Region region; Dimension xtl, ytl, xbr, ybr; /* INNER corners */ Boolean out; @@ -384,9 +383,7 @@ sbw->shown. The old area is erased. The painting and erasing is done cleverly so that no flickering will occur. */ -static void PaintThumb (sbw, event) - ScrollbarWidget sbw; - XEvent *event; +static void PaintThumb (ScrollbarWidget sbw) { Dimension s = sbw->threeD.shadow_width; Position oldtop = sbw->scrollbar.topLoc; @@ -423,7 +420,7 @@ if (sbw->scrollbar.orientation == XtorientHorizontal) { _ShadowSurroundedBox( - sbw, event, + sbw, (Region)NULL, newtop + s, 2 * s, newbot - s, sbw->core.height - 2 * s, TRUE); @@ -431,7 +428,7 @@ else { _ShadowSurroundedBox( - sbw, event, + sbw, (Region)NULL, 2 * s, newtop + s, sbw->core.width - 2 * s, newbot - s, @@ -761,7 +758,7 @@ XRectInRegion (region, x, y, width, height) != RectangleOut) { /* Forces entire thumb to be painted. */ sbw->scrollbar.topLoc = -(sbw->scrollbar.length + 1); - PaintThumb (sbw, event); + PaintThumb (sbw); } #ifdef ARROW_SCROLLBAR /* we'd like to be region aware here!!!! */ @@ -1165,7 +1162,7 @@ #ifdef ARROW_SCROLLBAR sbw->scrollbar.scroll_mode = 2; /* indicate continuous scroll */ #endif - PaintThumb (sbw, event); + PaintThumb (sbw); XFlush (XtDisplay (w)); /* re-draw it before Notifying */ }