From f3ae37e425b0dec37648adfdfe6dc37f69f1f793 Mon Sep 17 00:00:00 2001 From: ayin Date: Tue, 18 Dec 2007 11:08:44 +0000 Subject: [PATCH] fix redraw bug in xterm scrollbar with -sr (reported by Mikachu). --- Changes | 1 + src/scrollbar-xterm.C | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 3c1c1f5d..6f715f6b 100644 --- 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. diff --git a/src/scrollbar-xterm.C b/src/scrollbar-xterm.C index ec95a836..3bd315b5 100644 --- a/src/scrollbar-xterm.C +++ b/src/scrollbar-xterm.C @@ -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, -- 2.34.1