aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 0d616b6c067..757fa092de4 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -856,6 +856,7 @@ The return value is VALUE from the chosen item.")
856 /* Decode the first argument: find the window or frame to use. */ 856 /* Decode the first argument: find the window or frame to use. */
857 if (EQ (position, Qt)) 857 if (EQ (position, Qt))
858 { 858 {
859#if 0 /* Using the frame the mouse is on may not be right. */
859 /* Use the mouse's current position. */ 860 /* Use the mouse's current position. */
860 FRAME_PTR new_f = 0; 861 FRAME_PTR new_f = 0;
861 Lisp_Object bar_window; 862 Lisp_Object bar_window;
@@ -869,6 +870,14 @@ The return value is VALUE from the chosen item.")
869 XSET (window, Lisp_Frame, new_f); 870 XSET (window, Lisp_Frame, new_f);
870 else 871 else
871 window = selected_window; 872 window = selected_window;
873#endif
874 /* Decode the first argument: find the window and the coordinates. */
875 if (EQ (position, Qt))
876 {
877 window = selected_window;
878 XFASTINT (x) = 0;
879 XFASTINT (y) = 0;
880 }
872 } 881 }
873 else if (CONSP (position)) 882 else if (CONSP (position))
874 { 883 {