--- rxvt-unicode/src/scrollbar-plain.C 2006/01/31 19:11:43 1.16 +++ rxvt-unicode/src/scrollbar-plain.C 2006/02/02 18:04:46 1.19 @@ -40,8 +40,7 @@ scrollBar.init |= R_SB_PLAIN; gcvalue.foreground = pix_colors_focused[Color_scroll]; - pscrollbarGC = XCreateGC (xdisp, scrollBar.win, - GCForeground, &gcvalue); + pscrollbarGC = XCreateGC (dpy, scrollBar.win, GCForeground, &gcvalue); } xsb = OPTION (Opt_scrollBar_right) ? 1 : 0; @@ -49,20 +48,20 @@ if (update) { if (last_top < scrollBar.top) - XClearArea (xdisp, scrollBar.win, - sb_shadow + xsb, last_top, - sbwidth + 1, (scrollBar.top - last_top), False); + XClearArea (dpy, scrollBar.win, + sb_shadow, last_top, + sbwidth + 1, scrollBar.top - last_top, False); if (scrollBar.bot < last_bot) - XClearArea (xdisp, scrollBar.win, - sb_shadow + xsb, scrollBar.bot, - sbwidth + 1, (last_bot - scrollBar.bot), False); + XClearArea (dpy, scrollBar.win, + sb_shadow, scrollBar.bot, + sbwidth + 1, last_bot - scrollBar.bot, False); } else - XClearWindow (xdisp, scrollBar.win); + XClearWindow (dpy, scrollBar.win); /* scrollbar slider */ - XFillRectangle (xdisp, scrollBar.win, pscrollbarGC, + XFillRectangle (dpy, scrollBar.win, pscrollbarGC, 1 - xsb, scrollBar.top, sbwidth, scrollbar_len); return 1;