Commit 8784ebf3 authored by Eli Zaretskii's avatar Eli Zaretskii

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)
parent 8b87ecb7
......@@ -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))
{
......
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