From: Eli Zaretskii Date: Wed, 3 Feb 2016 16:11:10 +0000 (+0200) Subject: Fix x-popup-menu on TTYs without a mouse X-Git-Tag: emacs-25.0.91~106 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8784ebf3a9f94c64cd09149c4906a3f494a1251d;p=emacs.git Fix x-popup-menu on TTYs without a mouse * src/menu.c (Fx_popup_menu): Be sure to initialize 'x' and 'y' for the TTY case without a mouse. (Bug#22538) --- diff --git a/src/menu.c b/src/menu.c index caae228a259..cbddef35754 100644 --- a/src/menu.c +++ b/src/menu.c @@ -1236,6 +1236,9 @@ no quit occurs and `x-popup-menu' returns nil. */) { /* Use the mouse's current position. */ struct frame *new_f = SELECTED_FRAME (); + + XSETFASTINT (x, 0); + XSETFASTINT (y, 0); #ifdef HAVE_X_WINDOWS if (FRAME_X_P (new_f)) {