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:
parent
8b87ecb77d
commit
8784ebf3a9
1 changed files with 3 additions and 0 deletions
|
@ -1236,6 +1236,9 @@ no quit occurs and `x-popup-menu' returns nil. */)
|
||||||
{
|
{
|
||||||
/* Use the mouse's current position. */
|
/* Use the mouse's current position. */
|
||||||
struct frame *new_f = SELECTED_FRAME ();
|
struct frame *new_f = SELECTED_FRAME ();
|
||||||
|
|
||||||
|
XSETFASTINT (x, 0);
|
||||||
|
XSETFASTINT (y, 0);
|
||||||
#ifdef HAVE_X_WINDOWS
|
#ifdef HAVE_X_WINDOWS
|
||||||
if (FRAME_X_P (new_f))
|
if (FRAME_X_P (new_f))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue