(other_menu_bar_item_p): Return 0 if no menu bar.
authorRichard M. Stallman <rms@gnu.org>
Thu, 19 May 1994 15:49:52 +0000 (15:49 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 19 May 1994 15:49:52 +0000 (15:49 +0000)
src/xmenu.c

index a30c4ac..056ae04 100644 (file)
@@ -1269,6 +1269,7 @@ other_menu_bar_item_p (f, x, y)
      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