Commit e8e14166 authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu

(x_new_font): Update f->scroll_bar_actual_width.

parent 66f5ced0
2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* font.c (font_open_entity): Don't use ASET if font_object is Qnil.
* xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2009-11-24 Glenn Morris <rgm@gnu.org>
* frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
......
......@@ -8070,6 +8070,10 @@ x_new_font (f, font_object, fontset)
pixelh -= FRAME_MENUBAR_HEIGHT (f);
#endif
rows = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, pixelh);
/* Update f->scroll_bar_actual_width because it is used in
FRAME_PIXEL_WIDTH_TO_TEXT_COLS. */
f->scroll_bar_actual_width
= FRAME_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f);
cols = FRAME_PIXEL_WIDTH_TO_TEXT_COLS (f, FRAME_PIXEL_WIDTH (f));
change_frame_size (f, rows, cols, 0, 1, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment