Mercurial > emacs
comparison src/frame.c @ 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 | 403b2b833ce2 |
children | eee51908f90f |
comparison
equal
deleted
inserted
replaced
28009:190143c77ae3 | 28010:5e3c139838a6 |
---|---|
172 struct window *w = XWINDOW (window); | 172 struct window *w = XWINDOW (window); |
173 | 173 |
174 XSETFASTINT (w->last_modified, 0); | 174 XSETFASTINT (w->last_modified, 0); |
175 XSETFASTINT (w->top, XFASTINT (w->top) + n); | 175 XSETFASTINT (w->top, XFASTINT (w->top) + n); |
176 XSETFASTINT (w->height, XFASTINT (w->height) - n); | 176 XSETFASTINT (w->height, XFASTINT (w->height) - n); |
177 | |
178 if (INTEGERP (w->orig_top)) | |
179 XSETFASTINT (w->orig_top, XFASTINT (w->orig_top) + n); | |
180 if (INTEGERP (w->orig_height)) | |
181 XSETFASTINT (w->orig_height, XFASTINT (w->orig_height) - n); | |
177 | 182 |
178 /* Handle just the top child in a vertical split. */ | 183 /* Handle just the top child in a vertical split. */ |
179 if (!NILP (w->vchild)) | 184 if (!NILP (w->vchild)) |
180 set_menu_bar_lines_1 (w->vchild, n); | 185 set_menu_bar_lines_1 (w->vchild, n); |
181 | 186 |