changeset 28010:5e3c139838a6

(x_set_menu_bar_lines_1): Adjust window's orig_top and orig_height if set.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 06 Mar 2000 12:07:15 +0000
parents 190143c77ae3
children 8232258537cc
files src/frame.c src/xfns.c
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.c	Mon Mar 06 10:24:37 2000 +0000
+++ b/src/frame.c	Mon Mar 06 12:07:15 2000 +0000
@@ -174,6 +174,11 @@
   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))
--- a/src/xfns.c	Mon Mar 06 10:24:37 2000 +0000
+++ b/src/xfns.c	Mon Mar 06 12:07:15 2000 +0000
@@ -1915,6 +1915,11 @@
   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);