# HG changeset patch # User Gerd Moellmann # Date 952344435 0 # Node ID 5e3c139838a65aa220b625ec583f05dc6632afb0 # Parent 190143c77ae3bf02105609148c50d88d0bc92738 (x_set_menu_bar_lines_1): Adjust window's orig_top and orig_height if set. diff -r 190143c77ae3 -r 5e3c139838a6 src/frame.c --- 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)) diff -r 190143c77ae3 -r 5e3c139838a6 src/xfns.c --- 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);