Mercurial > emacs
changeset 3501:33a309357161
(Fx_popup_menu): Error if we don't get a window or a frame somehow.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 05 Jun 1993 17:31:54 +0000 |
parents | 78c1c1e9f4d2 |
children | c2b4a5b9c8d5 |
files | src/xmenu.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xmenu.c Sat Jun 05 17:16:39 1993 +0000 +++ b/src/xmenu.c Sat Jun 05 17:31:54 1993 +0000 @@ -163,6 +163,10 @@ XMenu_xpos = FONT_WIDTH (f->display.x->font) * XWINDOW (window)->left; XMenu_ypos = FONT_HEIGHT (f->display.x->font) * XWINDOW (window)->top; } + else + /* ??? Not really clean; should be CHECK_WINDOW_OR_FRAME, + but I don't want to make one now. */ + CHECK_WINDOW (window, 0); XMenu_xpos += FONT_WIDTH (f->display.x->font) * XINT (x); XMenu_ypos += FONT_HEIGHT (f->display.x->font) * XINT (y);