]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fx_popup_menu): Init f from selected_frame
authorRichard M. Stallman <rms@gnu.org>
Sat, 25 Feb 1995 21:28:36 +0000 (21:28 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 25 Feb 1995 21:28:36 +0000 (21:28 +0000)
before calling mouse_position_hook.

src/xmenu.c

index 05edbb55ad09fb806852e5db7b61132439e8b05b..5806a1c1173a0a92a420b5194db2ae208b4d082f 100644 (file)
@@ -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;