aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 1155ba44169..094240651ab 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3053,10 +3053,14 @@ x_scroll_bar_clear (f)
3053{ 3053{
3054 Lisp_Object bar; 3054 Lisp_Object bar;
3055 3055
3056 for (bar = FRAME_SCROLL_BARS (f); VECTORP (bar); 3056 /* We can have scroll bars even if this is 0,
3057 bar = XSCROLL_BAR (bar)->next) 3057 if we just turned off scroll bar mode.
3058 XClearArea (FRAME_X_DISPLAY (f), SCROLL_BAR_X_WINDOW (XSCROLL_BAR (bar)), 3058 But in that case we should not clear them. */
3059 0, 0, 0, 0, True); 3059 if (FRAME_HAS_VERTICAL_SCROLL_BARS (f))
3060 for (bar = FRAME_SCROLL_BARS (f); VECTORP (bar);
3061 bar = XSCROLL_BAR (bar)->next)
3062 XClearArea (FRAME_X_DISPLAY (f), SCROLL_BAR_X_WINDOW (XSCROLL_BAR (bar)),
3063 0, 0, 0, 0, True);
3060} 3064}
3061 3065
3062/* This processes Expose events from the menubar specific X event 3066/* This processes Expose events from the menubar specific X event