From: Martin Rudalics Date: Wed, 29 Jan 2014 10:29:14 +0000 (+0100) Subject: In x_set_tool_bar_lines of w32fns.c don't clear area on frames that are not visible. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~241^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5442c6cebbf80898f83d211d5b0d34cbfb289490;p=emacs.git In x_set_tool_bar_lines of w32fns.c don't clear area on frames that are not visible. * w32fns.c (x_set_tool_bar_lines): Don't clear area on frames that are not visible. --- diff --git a/src/ChangeLog b/src/ChangeLog index 3634c088f7e..93711966775 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2014-01-29 Martin Rudalics + + * w32fns.c (x_set_tool_bar_lines): Don't clear area on frames + that are not visible. + 2014-01-29 Jan Djärv * xmenu.c (create_and_show_popup_menu): Handle case when no key diff --git a/src/w32fns.c b/src/w32fns.c index 8d64af5b93d..98456cd20d4 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -1713,7 +1713,7 @@ x_set_tool_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) /* If the tool bar gets smaller, the internal border below it has to be cleared. It was formerly part of the display of the larger tool bar, and updating windows won't clear it. */ - if (FRAME_INTERNAL_BORDER_WIDTH (f) != 0) + if (FRAME_INTERNAL_BORDER_WIDTH (f) != 0 && FRAME_VISIBLE_P (f)) { int height = FRAME_INTERNAL_BORDER_WIDTH (f); int width = FRAME_PIXEL_WIDTH (f);