*** empty log message ***
authorroot <root>
Mon, 23 Aug 2004 19:47:03 +0000 (19:47 +0000)
committerroot <root>
Mon, 23 Aug 2004 19:47:03 +0000 (19:47 +0000)
src/scrollbar.C

index 13b53336f79d2326eea87e9ee251bebc700622d9..2e6feb5b1aa3b9f63471fdb9cac2e0f56ddf1c27 100644 (file)
@@ -37,18 +37,20 @@ rxvt_term::scrollbar_mapping (int map)
   int             change = 0;
 
 #ifdef HAVE_SCROLLBARS
-  if (map && !scrollbar_visible ())
+  if (map)
     {
       scrollBar.setIdle ();
+
       if (!scrollBar.win)
         resize_scrollbar ();
+
       if (scrollBar.win)
         {
           XMapWindow (display->display, scrollBar.win);
           change = 1;
         }
     }
-  else if (!map && scrollbar_visible ())
+  else
     {
       scrollBar.state = 0;
       XUnmapWindow (display->display, scrollBar.win);
@@ -116,7 +118,7 @@ rxvt_term::resize_scrollbar ()
                                           szHint.height,
                                           0,
                                           pix_colors[Color_fg],
-                                          pix_colors[Color_bg]);
+                                          pix_colors[Color_border]);
 #ifdef DEBUG_X
       XStoreName (display->display, scrollBar.win, "scrollbar");
 #endif