summaryrefslogtreecommitdiff
path: root/src/xfns.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-08-21 04:53:08 +0000
committerRichard M. Stallman <rms@gnu.org>1996-08-21 04:53:08 +0000
commit9a3f30abf4382da15a6b3517e8f0c978e62e80bc (patch)
tree8a1780dfeb231d55ade2b017de7bd16f8787a74d /src/xfns.c
parent0ece6d107f00c9123d82e0bbab2d9b50ab0ca25e (diff)
downloademacs-9a3f30abf4382da15a6b3517e8f0c978e62e80bc.tar.gz
(x_set_scroll_bar_width): Call x_set_window_size when arg is nil.
Diffstat (limited to 'src/xfns.c')
-rw-r--r--src/xfns.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 4b3ce08f741..a8bf946c596 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1962,6 +1962,8 @@ x_set_scroll_bar_width (f, arg, oldval)
{
FRAME_SCROLL_BAR_PIXEL_WIDTH (f) = 0;
FRAME_SCROLL_BAR_COLS (f) = 2;
+ if (FRAME_X_WINDOW (f))
+ x_set_window_size (f, 0, FRAME_WIDTH (f), FRAME_HEIGHT (f));
}
else if (INTEGERP (arg) && XINT (arg) > 0
&& XFASTINT (arg) != FRAME_SCROLL_BAR_PIXEL_WIDTH (f))