changeset 7554:9e9b7a0eebc6

(other_menu_bar_item_p): Return 0 if no menu bar.
author Richard M. Stallman <rms@gnu.org>
date Thu, 19 May 1994 15:49:52 +0000
parents e473c5ad9e7d
children 85afced1519c
files src/xmenu.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Thu May 19 05:58:21 1994 +0000
+++ b/src/xmenu.c	Thu May 19 15:49:52 1994 +0000
@@ -1269,6 +1269,7 @@
      int x, y;
 {
   return (y >= 0
+	  && f->display.x->menubar_widget != 0
 	  && y < f->display.x->menubar_widget->core.height
 	  && x >= 0
 	  && x < last_menu_bar_item_end