projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b87ecb
)
Fix x-popup-menu on TTYs without a mouse
author
Eli Zaretskii
<eliz@gnu.org>
Wed, 3 Feb 2016 16:11:10 +0000
(18:11 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Wed, 3 Feb 2016 16:11:10 +0000
(18:11 +0200)
* src/menu.c (Fx_popup_menu): Be sure to initialize 'x' and 'y'
for the TTY case without a mouse. (Bug#22538)
src/menu.c
patch
|
blob
|
history
diff --git
a/src/menu.c
b/src/menu.c
index caae228a2593460c29a462b03f60fb910769cfaf..cbddef3575495337bbfec73cad2c9de0bf7922d2 100644
(file)
--- 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))
{