]> git.eshelyaron.com Git - emacs.git/commitdiff
In x_set_tool_bar_lines of w32fns.c don't clear area on frames that are not visible.
authorMartin Rudalics <rudalics@gmx.at>
Wed, 29 Jan 2014 10:29:14 +0000 (11:29 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Wed, 29 Jan 2014 10:29:14 +0000 (11:29 +0100)
* w32fns.c (x_set_tool_bar_lines): Don't clear area on frames
that are not visible.

src/ChangeLog
src/w32fns.c

index 3634c088f7ea29fc5c75ed45b0a2a8e83b7124d3..9371196677535dc3d3dd08af4755286631fa7d6c 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-29  Martin Rudalics  <rudalics@gmx.at>
+
+       * w32fns.c (x_set_tool_bar_lines): Don't clear area on frames
+       that are not visible.
+
 2014-01-29  Jan Djärv  <jan.h.d@swipnet.se>
 
        * xmenu.c (create_and_show_popup_menu): Handle case when no key
index 8d64af5b93d6dbdfeccb45733b724f53dccdda1b..98456cd20d4ee130470f17769dc254ca74c590a1 100644 (file)
@@ -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);