diff src/xmenu.c @ 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 371ae57ac9a8
children 5475c6144371
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