changeset 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 69f20f10799a
children e473c5ad9e7d
files src/xmenu.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
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;