1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-23 10:34:07 +00:00

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)
This commit is contained in:
Eli Zaretskii 2016-02-03 18:11:10 +02:00
parent 8b87ecb77d
commit 8784ebf3a9

View File

@ -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))
{