Mercurial > emacs
changeset 8414:8a8d2cdd4218
(xmenu_show): Ignore any geometry resource from the user.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 01 Aug 1994 21:29:46 +0000 |
parents | aa772e9e5f86 |
children | ec05bbe4ef1c |
files | src/xmenu.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xmenu.c Mon Aug 01 20:00:24 1994 +0000 +++ b/src/xmenu.c Mon Aug 01 21:29:46 1994 +0000 @@ -64,6 +64,7 @@ #include <X11/IntrinsicP.h> #include <X11/CoreP.h> #include <X11/StringDefs.h> +#include <X11/Shell.h> #include <X11/Xaw/Paned.h> #include "../lwlib/lwlib.h" #include "../lwlib/xlwmenuP.h" @@ -1391,6 +1392,8 @@ int menu_id; Widget menu; XlwMenuWidget menubar = (XlwMenuWidget) f->display.x->menubar_widget; + Arg av [2]; + int ac = 0; /* This is the menu bar item (if any) that led to this menu. */ widget_value *menubar_item = 0; @@ -1574,6 +1577,11 @@ menu = lw_create_widget ("popup", first_wv->name, menu_id, first_wv, f->display.x->widget, 1, 0, popup_selection_callback, popup_down_callback); + + /* Don't allow any geometry request from the user. */ + XtSetArg (av[ac], XtNgeometry, 0); ac++; + XtSetValues (menu, av, ac); + /* Free the widget_value objects we used to specify the contents. */ free_menubar_widget_value_tree (first_wv);