aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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);