mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 02:51:31 -08:00
(x_scroll_bar_clear): Do nothing if frame now has no scroll bars.
This commit is contained in:
parent
637ad741e0
commit
b80c363eee
1 changed files with 8 additions and 4 deletions
12
src/xterm.c
12
src/xterm.c
|
|
@ -3053,10 +3053,14 @@ x_scroll_bar_clear (f)
|
|||
{
|
||||
Lisp_Object bar;
|
||||
|
||||
for (bar = FRAME_SCROLL_BARS (f); VECTORP (bar);
|
||||
bar = XSCROLL_BAR (bar)->next)
|
||||
XClearArea (FRAME_X_DISPLAY (f), SCROLL_BAR_X_WINDOW (XSCROLL_BAR (bar)),
|
||||
0, 0, 0, 0, True);
|
||||
/* We can have scroll bars even if this is 0,
|
||||
if we just turned off scroll bar mode.
|
||||
But in that case we should not clear them. */
|
||||
if (FRAME_HAS_VERTICAL_SCROLL_BARS (f))
|
||||
for (bar = FRAME_SCROLL_BARS (f); VECTORP (bar);
|
||||
bar = XSCROLL_BAR (bar)->next)
|
||||
XClearArea (FRAME_X_DISPLAY (f), SCROLL_BAR_X_WINDOW (XSCROLL_BAR (bar)),
|
||||
0, 0, 0, 0, True);
|
||||
}
|
||||
|
||||
/* This processes Expose events from the menubar specific X event
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue