comparison src/xmenu.c @ 10835:cd9261d8d347

(Fx_popup_menu): Init f from selected_frame before calling mouse_position_hook.
author Richard M. Stallman <rms@gnu.org>
date Sat, 25 Feb 1995 21:28:36 +0000
parents b7824d6a6b36
children dc78213dd2b3
comparison
equal deleted inserted replaced
10834:e79e5c9e7722 10835:cd9261d8d347
724 724
725 /* Decode the first argument: find the window and the coordinates. */ 725 /* Decode the first argument: find the window and the coordinates. */
726 if (EQ (position, Qt)) 726 if (EQ (position, Qt))
727 { 727 {
728 /* Use the mouse's current position. */ 728 /* Use the mouse's current position. */
729 FRAME_PTR new_f = 0; 729 FRAME_PTR new_f = selected_frame;
730 Lisp_Object bar_window; 730 Lisp_Object bar_window;
731 int part; 731 int part;
732 unsigned long time; 732 unsigned long time;
733 733
734 if (mouse_position_hook) 734 if (mouse_position_hook)
914 /* Decode the first argument: find the window or frame to use. */ 914 /* Decode the first argument: find the window or frame to use. */
915 if (EQ (position, Qt)) 915 if (EQ (position, Qt))
916 { 916 {
917 #if 0 /* Using the frame the mouse is on may not be right. */ 917 #if 0 /* Using the frame the mouse is on may not be right. */
918 /* Use the mouse's current position. */ 918 /* Use the mouse's current position. */
919 FRAME_PTR new_f = 0; 919 FRAME_PTR new_f = selected_frame;
920 Lisp_Object bar_window; 920 Lisp_Object bar_window;
921 int part; 921 int part;
922 unsigned long time; 922 unsigned long time;
923 Lisp_Object x, y; 923 Lisp_Object x, y;
924 924