# HG changeset patch # User Richard M. Stallman # Date 793747716 0 # Node ID cd9261d8d347cb5c6ce215380125e83875c8aef9 # Parent e79e5c9e772208dc5eadee595534dc48c3f521e3 (Fx_popup_menu): Init f from selected_frame before calling mouse_position_hook. diff -r e79e5c9e7722 -r cd9261d8d347 src/xmenu.c --- a/src/xmenu.c Sat Feb 25 20:57:45 1995 +0000 +++ b/src/xmenu.c Sat Feb 25 21:28:36 1995 +0000 @@ -726,7 +726,7 @@ 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 @@ { #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;