Mercurial > emacs
changeset 13714:45e71ea63d71
(XMenuActivate): Display the menu pane title.
(XMenuLocate): Do not ignore pane title length when deciding on
menu location.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Wed, 13 Dec 1995 02:13:59 +0000 |
parents | f85b6bd0f925 |
children | 89ffc133f813 |
files | src/msdos.c |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/msdos.c Wed Dec 13 02:09:24 1995 +0000 +++ b/src/msdos.c Wed Dec 13 02:13:59 1995 +0000 @@ -1634,11 +1634,7 @@ XMenuLocate (Display *foo0, XMenu *menu, int foo1, int foo2, int x, int y, int *ulx, int *uly, int *width, int *height) { - if (menu->count == 1 && menu->submenu[0]) - /* Special case: the menu consists of only one pane. */ - IT_menu_calc_size (menu->submenu[0], width, height); - else - IT_menu_calc_size (menu, width, height); + IT_menu_calc_size (menu, width, height); *ulx = x + 1; *uly = y; *width += 2; @@ -1693,6 +1689,8 @@ state[0].menu = menu; mouse_off (); ScreenRetrieve (state[0].screen_behind = xmalloc (screensize)); + + IT_menu_display (menu, y0 - 1, x0 - 1, faces); /* display the menu title */ if ((onepane = menu->count == 1 && menu->submenu[0])) { menu->width = menu->submenu[0]->width;