From ac8f8f7d8cf769319a8d21b4d04e323f3b4d55b5 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 25 Feb 1995 21:28:36 +0000 Subject: [PATCH] (Fx_popup_menu): Init f from selected_frame before calling mouse_position_hook. --- src/xmenu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xmenu.c b/src/xmenu.c index 05edbb55ad..5806a1c117 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -726,7 +726,7 @@ cached information about equivalent key sequences.") if (EQ (position, Qt)) { /* Use the mouse's current position. */ - FRAME_PTR new_f = 0; + FRAME_PTR new_f = selected_frame; Lisp_Object bar_window; int part; unsigned long time; @@ -916,7 +916,7 @@ on the left of the dialog box and all following items on the right.\n\ { #if 0 /* Using the frame the mouse is on may not be right. */ /* Use the mouse's current position. */ - FRAME_PTR new_f = 0; + FRAME_PTR new_f = selected_frame; Lisp_Object bar_window; int part; unsigned long time; -- 2.20.1