(Fx_popup_menu): Use line_height field.
authorRichard M. Stallman <rms@gnu.org>
Sat, 9 Apr 1994 06:32:17 +0000 (06:32 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 9 Apr 1994 06:32:17 +0000 (06:32 +0000)
src/xmenu.c

index 309137b..18d5105 100644 (file)
@@ -746,7 +746,7 @@ cached information about equivalent key sequences.")
          f = XFRAME (WINDOW_FRAME (XWINDOW (window)));
 
          xpos = (FONT_WIDTH (f->display.x->font) * XWINDOW (window)->left);
-         ypos = (FONT_HEIGHT (f->display.x->font) * XWINDOW (window)->top);
+         ypos = (f->display.x->line_height * XWINDOW (window)->top);
        }
       else
        /* ??? Not really clean; should be CHECK_WINDOW_OR_FRAME,