Do not honour shadow value in plain/xterm styles.
authorayin <ayin>
Sun, 17 Feb 2008 19:07:00 +0000 (19:07 +0000)
committerayin <ayin>
Sun, 17 Feb 2008 19:07:00 +0000 (19:07 +0000)
src/scrollbar-plain.C
src/scrollbar-xterm.C

index 2a9f8aa673d12aa243c8d4df486c5fba35cd1525..2de214fee7403d44bae8e8e6f1b1055f9a55c2ad 100644 (file)
@@ -49,12 +49,12 @@ rxvt_term::scrollbar_show_plain (int update, int last_top, int last_bot, int scr
     {
       if (last_top < scrollBar.top)
         XClearArea (dpy, scrollBar.win,
-                    scrollBar.shadow, last_top,
+                    0, last_top,
                     sbwidth + 1, scrollBar.top - last_top, False);
 
       if (scrollBar.bot < last_bot)
         XClearArea (dpy, scrollBar.win,
-                    scrollBar.shadow, scrollBar.bot,
+                    0, scrollBar.bot,
                     sbwidth + 1, last_bot - scrollBar.bot, False);
     }
   else
index a083e6114071d4a01a0ad78903ce51286e61ef5e..0c163d8be2716b515e06140c22a4409bb73f8e5f 100644 (file)
@@ -65,12 +65,12 @@ rxvt_term::scrollbar_show_xterm (int update, int last_top, int last_bot, int scr
     {
       if (last_top < scrollBar.top)
         XClearArea (dpy, scrollBar.win,
-                   scrollBar.shadow + xsb, last_top,
+                   xsb, last_top,
                    sbwidth, (scrollBar.top - last_top), False);
 
       if (scrollBar.bot < last_bot)
         XClearArea (dpy, scrollBar.win,
-                   scrollBar.shadow + xsb, scrollBar.bot,
+                   xsb, scrollBar.bot,
                    sbwidth, (last_bot - scrollBar.bot), False);
     }
   else