summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xterm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 57f7e1b8005..ac945e144b5 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7929,7 +7929,8 @@ XTset_vertical_scroll_bar (w, portion, whole, position)
for them on the frame, we have to clear "under" them. */
XClearArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
pixel_left, pixel_top,
- pixel_width + 1, pixel_height, False);
+ FRAME_SCROLL_BAR_COLS (f) * CANON_X_UNIT (f),
+ pixel_height, False);
/* Move/size the scroll bar widget. */
if (mask)