]> git.eshelyaron.com Git - emacs.git/commitdiff
(xmenu_show): Don't look in menubar for core.height if no menu bar.
authorRichard M. Stallman <rms@gnu.org>
Thu, 19 May 1994 05:56:21 +0000 (05:56 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 19 May 1994 05:56:21 +0000 (05:56 +0000)
src/xmenu.c

index 2cb5974b4e564e110810129fd64d88fffbe7c4a5..a30c4ac29dfd52df3dfbd911267fb18770a27068 100644 (file)
@@ -1427,9 +1427,10 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error)
     menubarp = 0;
 
   /* Offset the coordinates to root-relative.  */
+  if (f->display.x->menubar_widget != 0)
+    y += f->display.x->menubar_widget->core.height;
   XtTranslateCoords (f->display.x->widget,
-                    x, y + f->display.x->menubar_widget->core.height,
-                    &root_x, &root_y);
+                    x, y, &root_x, &root_y);
   x = root_x;
   y = root_y;