]> code.delx.au - gnu-emacs/commitdiff
(x_set_menu_bar_lines_1): Adjust window's orig_top and
authorGerd Moellmann <gerd@gnu.org>
Mon, 6 Mar 2000 12:11:01 +0000 (12:11 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 6 Mar 2000 12:11:01 +0000 (12:11 +0000)
orig_height if set.

src/ChangeLog
src/frame.c
src/xfns.c

index b97ad5ef07ec712551207894bdbaff21d7019330..bdc8e9207f322a1f799b675eee9d2ab5c1f04282 100644 (file)
@@ -1,3 +1,11 @@
+2000-03-06  Gerd Moellmann  <gerd@gnu.org>
+
+       * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
+       orig_height if set.
+
+       * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
+       orig_height if set.
+
 2000-03-06  Eli Zaretskii  <eliz@is.elta.co.il>
 
        * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
@@ -20,7 +28,7 @@
        FRAME_INTERNAL_BORDER_WIDTH.
 
        * xdisp.c (try_window_id): Recompute unchanged information if
-       it is invalid.
+       it is obviously invalid.
 
        * xterm.c (x_term_init): Create a colormap if not using the
        default visual.
index eb0f752fc0614f01060fe0999bb696bfdf5faeed..f5cc8bf1d3225968241c96ee15724e3f35f90818 100644 (file)
@@ -174,6 +174,11 @@ set_menu_bar_lines_1 (window, n)
   XSETFASTINT (w->last_modified, 0);
   XSETFASTINT (w->top, XFASTINT (w->top) + n);
   XSETFASTINT (w->height, XFASTINT (w->height) - n);
+  
+  if (INTEGERP (w->orig_top))
+    XSETFASTINT (w->orig_top, XFASTINT (w->orig_top) + n);
+  if (INTEGERP (w->orig_height))
+    XSETFASTINT (w->orig_height, XFASTINT (w->orig_height) - n);
 
   /* Handle just the top child in a vertical split.  */
   if (!NILP (w->vchild))
index bf241d0b4d56d5dee67596c51684ea5cd087166b..dafee872a34a7657fe7996e145ba4d1b2c01e9fb 100644 (file)
@@ -1915,6 +1915,11 @@ x_set_menu_bar_lines_1 (window, n)
   XSETFASTINT (w->top, XFASTINT (w->top) + n);
   XSETFASTINT (w->height, XFASTINT (w->height) - n);
 
+  if (INTEGERP (w->orig_top))
+    XSETFASTINT (w->orig_top, XFASTINT (w->orig_top) + n);
+  if (INTEGERP (w->orig_height))
+    XSETFASTINT (w->orig_height, XFASTINT (w->orig_height) - n);
+
   /* Handle just the top child in a vertical split.  */
   if (!NILP (w->vchild))
     x_set_menu_bar_lines_1 (w->vchild, n);