From: Martin Rudalics Date: Wed, 4 Mar 2015 17:52:08 +0000 (+0100) Subject: Handle tool bar size changes after x_set_font. X-Git-Tag: emacs-25.0.90~2564^2~223 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=53a3f3ab17abd97f305c93416095fecac2e3f2e1;p=emacs.git Handle tool bar size changes after x_set_font. * frame.c (x_set_font): Try to keep frame height and width unchanged if tool bar size changes with new font. --- diff --git a/src/ChangeLog b/src/ChangeLog index 8acca6cca3f..e8fa72caea0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,9 +1,14 @@ +2015-03-04 Martin Rudalics + + * frame.c (x_set_font): Try to keep frame height and width + unchanged if tool bar size changes with new font. + 2015-03-03 Eli Zaretskii * search.c (find_newline): Avoid assertion violations in CHAR_TO_BYTE when a portion of the buffer was deleted and we look for newlines near the end of the buffer. This happens in Rmail - hen JIT font-lock fontifies a newly displayed portion of the + when JIT font-lock fontifies a newly displayed portion of the buffer. 2015-03-03 Eli Zaretskii diff --git a/src/frame.c b/src/frame.c index bac2b246ad9..aa07219d152 100644 --- a/src/frame.c +++ b/src/frame.c @@ -3626,6 +3626,7 @@ x_set_font (struct frame *f, Lisp_Object arg, Lisp_Object oldval) #endif /* Recalculate toolbar height. */ f->n_tool_bar_rows = 0; + f->tool_bar_redisplayed_once = false; /* Ensure we redraw it. */ clear_current_matrices (f);