Commit 378f8939 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fx_popup_menu): Error if we don't get a window or a frame somehow.

parent d0dbd3bf
......@@ -163,6 +163,10 @@ With this form of menu, the return value is VALUE from the chosen item.")
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment