From 5afd909a5c55f4725261e08f1779ff53d2179b53 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 23 Aug 2004 19:47:03 +0000 Subject: [PATCH] *** empty log message *** --- src/scrollbar.C | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/scrollbar.C b/src/scrollbar.C index 13b53336..2e6feb5b 100644 --- a/src/scrollbar.C +++ b/src/scrollbar.C @@ -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 -- 2.34.1