aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-05-19 05:56:21 +0000
committerRichard M. Stallman1994-05-19 05:56:21 +0000
commitf70e9e1e64e5e48823bc4a1ba585e0a615ef28bc (patch)
treee0c141a6cfc6e27751bf9ee58446aa1b03f6989c
parentf4226e899908d59af89da4c3308d8501c54b75b3 (diff)
downloademacs-f70e9e1e64e5e48823bc4a1ba585e0a615ef28bc.tar.gz
emacs-f70e9e1e64e5e48823bc4a1ba585e0a615ef28bc.zip
(xmenu_show): Don't look in menubar for core.height if no menu bar.
-rw-r--r--src/xmenu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 2cb5974b4e5..a30c4ac29df 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1427,9 +1427,10 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error)
1427 menubarp = 0; 1427 menubarp = 0;
1428 1428
1429 /* Offset the coordinates to root-relative. */ 1429 /* Offset the coordinates to root-relative. */
1430 if (f->display.x->menubar_widget != 0)
1431 y += f->display.x->menubar_widget->core.height;
1430 XtTranslateCoords (f->display.x->widget, 1432 XtTranslateCoords (f->display.x->widget,
1431 x, y + f->display.x->menubar_widget->core.height, 1433 x, y, &root_x, &root_y);
1432 &root_x, &root_y);
1433 x = root_x; 1434 x = root_x;
1434 y = root_y; 1435 y = root_y;
1435 1436