aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGeoff Voelker1997-01-13 01:41:59 +0000
committerGeoff Voelker1997-01-13 01:41:59 +0000
commitef06882daf1b0bc3f7a226d315e4f5d4005d5c4d (patch)
treef5b26246ca1af889ba3231fc51ec94a8aa5ef267 /src
parent926e2fdb931925a7cfb8de16bd4ecf8909f5787a (diff)
downloademacs-ef06882daf1b0bc3f7a226d315e4f5d4005d5c4d.tar.gz
emacs-ef06882daf1b0bc3f7a226d315e4f5d4005d5c4d.zip
(x-popup-menu): Pass in insist flag to mouse_position_hook.
Diffstat (limited to 'src')
-rw-r--r--src/w32menu.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/w32menu.c b/src/w32menu.c
index a169e267e31..cdc7816fad4 100644
--- a/src/w32menu.c
+++ b/src/w32menu.c
@@ -1152,16 +1152,18 @@ cached information about equivalent key sequences.")
1152 if (! NILP (position)) 1152 if (! NILP (position))
1153 { 1153 {
1154 /* Decode the first argument: find the window and the coordinates. */ 1154 /* Decode the first argument: find the window and the coordinates. */
1155 if (EQ (position, Qt)) 1155 if (EQ (position, Qt)
1156 || (CONSP (position) && EQ (XCONS (position)->car, Qmenu_bar)))
1156 { 1157 {
1157 /* Use the mouse's current position. */ 1158 /* Use the mouse's current position. */
1158 FRAME_PTR new_f = 0; 1159 FRAME_PTR new_f = selected_frame;
1159 Lisp_Object bar_window; 1160 Lisp_Object bar_window;
1160 int part; 1161 int part;
1161 unsigned long time; 1162 unsigned long time;
1162 1163
1163 if (mouse_position_hook) 1164 if (mouse_position_hook)
1164 (*mouse_position_hook) (&new_f, &bar_window, &part, &x, &y, &time); 1165 (*mouse_position_hook) (&new_f, 1, &bar_window,
1166 &part, &x, &y, &time);
1165 if (new_f != 0) 1167 if (new_f != 0)
1166 XSETFRAME (window, new_f); 1168 XSETFRAME (window, new_f);
1167 else 1169 else
@@ -1517,7 +1519,7 @@ check_mouse_other_menu_bar (f)
1517 Lisp_Object x, y; 1519 Lisp_Object x, y;
1518 unsigned long time; 1520 unsigned long time;
1519 1521
1520 (*mouse_position_hook) (&new_f, &bar_window, &part, &x, &y, &time); 1522 (*mouse_position_hook) (&new_f, 1, &bar_window, &part, &x, &y, &time);
1521 1523
1522 if (f == new_f && other_menu_bar_item_p (f, x, y)) 1524 if (f == new_f && other_menu_bar_item_p (f, x, y))
1523 { 1525 {