aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-05 17:31:54 +0000
committerRichard M. Stallman1993-06-05 17:31:54 +0000
commit378f89399a2d4a2831e3274fe98ff97e6fbdf96c (patch)
tree9aef53468e1b40c06f9e162644e27636348ed5d5 /src
parentd0dbd3bfc119298e2bd66fe9a5d6a2cabe2477d9 (diff)
downloademacs-378f89399a2d4a2831e3274fe98ff97e6fbdf96c.tar.gz
emacs-378f89399a2d4a2831e3274fe98ff97e6fbdf96c.zip
(Fx_popup_menu): Error if we don't get a window or a frame somehow.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index a5b69946b7a..1f70766426d 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -163,6 +163,10 @@ With this form of menu, the return value is VALUE from the chosen item.")
163 XMenu_xpos = FONT_WIDTH (f->display.x->font) * XWINDOW (window)->left; 163 XMenu_xpos = FONT_WIDTH (f->display.x->font) * XWINDOW (window)->left;
164 XMenu_ypos = FONT_HEIGHT (f->display.x->font) * XWINDOW (window)->top; 164 XMenu_ypos = FONT_HEIGHT (f->display.x->font) * XWINDOW (window)->top;
165 } 165 }
166 else
167 /* ??? Not really clean; should be CHECK_WINDOW_OR_FRAME,
168 but I don't want to make one now. */
169 CHECK_WINDOW (window, 0);
166 170
167 XMenu_xpos += FONT_WIDTH (f->display.x->font) * XINT (x); 171 XMenu_xpos += FONT_WIDTH (f->display.x->font) * XINT (x);
168 XMenu_ypos += FONT_HEIGHT (f->display.x->font) * XINT (y); 172 XMenu_ypos += FONT_HEIGHT (f->display.x->font) * XINT (y);