From: Jan D Date: Wed, 14 Jul 2010 15:10:59 +0000 (+0200) Subject: Fix frame size when scroll bar width not an integral of column width. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~51^2~54 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6b2c4bd94eafbfe2417cf92a7a5702d3b70b454b;p=emacs.git Fix frame size when scroll bar width not an integral of column width. xterm.c (x_set_window_size_1): scroll_bar_actual_width is always SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing. --- diff --git a/src/ChangeLog b/src/ChangeLog index 6ca09f99fe7..5119a048c2f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -8,6 +8,8 @@ Remove #ifdef USE_GTK around finish = X_EVENT_DROP. Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for ButtonRelease. + (x_set_window_size_1): scroll_bar_actual_width is always + SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing. * xdisp.c (pending_menu_activation): Remove extern declaration. (prepare_menu_bars): Remove setting of pending_menu_activation. diff --git a/src/xterm.c b/src/xterm.c index e66845df26c..1427797f8d5 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -8606,9 +8606,7 @@ x_set_window_size_1 (struct frame *f, int change_gravity, int cols, int rows) f->scroll_bar_actual_width = (!FRAME_HAS_VERTICAL_SCROLL_BARS (f) ? 0 - : FRAME_CONFIG_SCROLL_BAR_WIDTH (f) > 0 - ? FRAME_CONFIG_SCROLL_BAR_WIDTH (f) - : (FRAME_CONFIG_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f))); + : FRAME_CONFIG_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f)); compute_fringe_widths (f, 0);