diff src/xmenu.c @ 7552:371ae57ac9a8

(xmenu_show): Don't look in menubar for core.height if no menu bar.
author Richard M. Stallman <rms@gnu.org>
date Thu, 19 May 1994 05:56:21 +0000
parents 2971264ff9aa
children 9e9b7a0eebc6
line wrap: on
line diff
--- a/src/xmenu.c	Thu May 19 05:54:51 1994 +0000
+++ b/src/xmenu.c	Thu May 19 05:56:21 1994 +0000
@@ -1427,9 +1427,10 @@
     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;