summaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-02-03 18:11:10 +0200
committerEli Zaretskii <eliz@gnu.org>2016-02-03 18:11:10 +0200
commit8784ebf3a9f94c64cd09149c4906a3f494a1251d (patch)
tree20eae511f7c9c099a9fb20ab24bef4b4bd53b9a9 /src/menu.c
parent8b87ecb77dc8212e16be4ef8cb28fe2829f6877b (diff)
downloademacs-8784ebf3a9f94c64cd09149c4906a3f494a1251d.tar.gz
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)
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c3
1 files changed, 3 insertions, 0 deletions
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))
{