From a90ab37216495ce1f6143e7935ac0befaba3d334 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 21 Aug 1996 04:53:08 +0000 Subject: [PATCH] (x_set_scroll_bar_width): Call x_set_window_size when arg is nil. --- src/xfns.c | 2 ++ 1 file changed, 2 insertions(+) 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)) -- 2.39.2