fix redraw bug in xterm scrollbar with -sr (reported by Mikachu).
authorayin <ayin>
Tue, 18 Dec 2007 11:08:44 +0000 (11:08 +0000)
committerayin <ayin>
Tue, 18 Dec 2007 11:08:44 +0000 (11:08 +0000)
Changes
src/scrollbar-xterm.C

diff --git a/Changes b/Changes
index 3c1c1f5d9126dbb1c98f0d864af86bc9de706f38..6f715f6bf2855c31135b9cf236175da9b11a95e8 100644 (file)
--- a/Changes
+++ b/Changes
@@ -17,6 +17,7 @@ WISH: load system-wide config file even if we don't have one
 WISH: look into XAddConnectionWatch, does anybody need that?
 DUMB: support tex fonts
 
+       - fix redraw bug in xterm scrollbar with -sr (reported by Mikachu).
        - fix the issue where urxvtd would not immediately close a window
           when the command exited but only on the next X event.
 
index ec95a836e429d2f771175175cd6c4935f4a8c0f2..3bd315b5137d6d9148e25a4acd3c2d38619dffeb 100644 (file)
@@ -59,9 +59,10 @@ rxvt_term::scrollbar_show_xterm (int update, int last_top, int last_bot, int scr
       ShadowGC = XCreateGC (dpy, scrollBar.win, GCForeground, &gcvalue);
     }
 
+  xsb = option (Opt_scrollBar_right) ? 1 : 0;
+
   if (update)
     {
-      xsb = option (Opt_scrollBar_right) ? 1 : 0;
       if (last_top < scrollBar.top)
         XClearArea (dpy, scrollBar.win,
                    sb_shadow + xsb, last_top,