aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/w32fns.c3
2 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 63ad9ec6e2e..910a73a321d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,13 +1,17 @@
12007-02-22 Jason Rumney <jasonr@gnu.org> 12007-02-22 Jason Rumney <jasonr@gnu.org>
2 2
3 * w32fns.c (w32_wnd_proc) [WM_INITMENU]: Set menubar_active frame
4 parameter.
5
3 * w32menu.c (current_popup_menu): Make available globally. 6 * w32menu.c (current_popup_menu): Make available globally.
4 (menubar_selection_callback): Free menu strings before pushing the 7 (menubar_selection_callback): Free menu strings before pushing the
5 menu event into the keyboard buffer. Remove 8 menu event into the keyboard buffer. Remove
6 menu_command_in_progress. 9 menu_command_in_progress.
7 10
8 * w32fns.c (current_popup_menu): Use from w32menu.c. 11 * w32fns.c (current_popup_menu): Use from w32menu.c.
9 (w32_wnd_proc): Use menubar_active and current_popup_menu to 12 (w32_wnd_proc) [WM_EXITMENULOOP, WM_TIMER]: Use menubar_active
10 determine whether a menubar menu has been cancelled. 13 and current_popup_menu to determine whether a menubar menu has
14 been cancelled.
11 15
12 * w32term.h (w32_output): Remove menu_command_in_progress. 16 * w32term.h (w32_output): Remove menu_command_in_progress.
13 17
diff --git a/src/w32fns.c b/src/w32fns.c
index 2fc83ce50a3..3037633c271 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -3472,6 +3472,9 @@ w32_wnd_proc (hwnd, msg, wParam, lParam)
3472 if (find_deferred_msg (hwnd, msg) != NULL) 3472 if (find_deferred_msg (hwnd, msg) != NULL)
3473 abort (); 3473 abort ();
3474 3474
3475 if (f)
3476 f->output_data.w32->menubar_active = 1;
3477
3475 return send_deferred_msg (&msg_buf, hwnd, msg, wParam, lParam); 3478 return send_deferred_msg (&msg_buf, hwnd, msg, wParam, lParam);
3476 } 3479 }
3477 3480