aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-05-19 15:49:52 +0000
committerRichard M. Stallman1994-05-19 15:49:52 +0000
commit948c852a5fd6610555e3fa96d047803529c39880 (patch)
tree96da155b8862dabe3e9a668bbe4412e243d385f0 /src
parentc58bf9ae2a7e7e3a6486cae4f736f3d0f9b4372b (diff)
downloademacs-948c852a5fd6610555e3fa96d047803529c39880.tar.gz
emacs-948c852a5fd6610555e3fa96d047803529c39880.zip
(other_menu_bar_item_p): Return 0 if no menu bar.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index a30c4ac29df..056ae04dd41 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1269,6 +1269,7 @@ other_menu_bar_item_p (f, x, y)
1269 int x, y; 1269 int x, y;
1270{ 1270{
1271 return (y >= 0 1271 return (y >= 0
1272 && f->display.x->menubar_widget != 0
1272 && y < f->display.x->menubar_widget->core.height 1273 && y < f->display.x->menubar_widget->core.height
1273 && x >= 0 1274 && x >= 0
1274 && x < last_menu_bar_item_end 1275 && x < last_menu_bar_item_end