diff options
| author | Jan D | 2010-07-14 17:10:59 +0200 |
|---|---|---|
| committer | Jan D | 2010-07-14 17:10:59 +0200 |
| commit | 6b2c4bd94eafbfe2417cf92a7a5702d3b70b454b (patch) | |
| tree | 1962ca92e987c7c00f11c551db578d4d43666885 /src | |
| parent | cf28cebc2e93dbd2cd0e6eb2f1a9543a015a1235 (diff) | |
| download | emacs-6b2c4bd94eafbfe2417cf92a7a5702d3b70b454b.tar.gz emacs-6b2c4bd94eafbfe2417cf92a7a5702d3b70b454b.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/xterm.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6ca09f99fe7..5119a048c2f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -8,6 +8,8 @@ | |||
| 8 | Remove #ifdef USE_GTK around finish = X_EVENT_DROP. | 8 | Remove #ifdef USE_GTK around finish = X_EVENT_DROP. |
| 9 | Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for | 9 | Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for |
| 10 | ButtonRelease. | 10 | ButtonRelease. |
| 11 | (x_set_window_size_1): scroll_bar_actual_width is always | ||
| 12 | SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing. | ||
| 11 | 13 | ||
| 12 | * xdisp.c (pending_menu_activation): Remove extern declaration. | 14 | * xdisp.c (pending_menu_activation): Remove extern declaration. |
| 13 | (prepare_menu_bars): Remove setting of pending_menu_activation. | 15 | (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) | |||
| 8606 | f->scroll_bar_actual_width | 8606 | f->scroll_bar_actual_width |
| 8607 | = (!FRAME_HAS_VERTICAL_SCROLL_BARS (f) | 8607 | = (!FRAME_HAS_VERTICAL_SCROLL_BARS (f) |
| 8608 | ? 0 | 8608 | ? 0 |
| 8609 | : FRAME_CONFIG_SCROLL_BAR_WIDTH (f) > 0 | 8609 | : FRAME_CONFIG_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f)); |
| 8610 | ? FRAME_CONFIG_SCROLL_BAR_WIDTH (f) | ||
| 8611 | : (FRAME_CONFIG_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f))); | ||
| 8612 | 8610 | ||
| 8613 | compute_fringe_widths (f, 0); | 8611 | compute_fringe_widths (f, 0); |
| 8614 | 8612 | ||