Commit dcb9e676 authored by Karl Heuer's avatar Karl Heuer
Browse files

(update_menu_bar): Call set_frame_menubar with proper buffer current.

parent be67270a
...@@ -1261,11 +1261,11 @@ update_menu_bar (f, save_match_data) ...@@ -1261,11 +1261,11 @@ update_menu_bar (f, save_match_data)
call1 (Vrun_hooks, Qmenu_bar_update_hook); call1 (Vrun_hooks, Qmenu_bar_update_hook);
current_buffer = XBUFFER (w->buffer); current_buffer = XBUFFER (w->buffer);
FRAME_MENU_BAR_ITEMS (f) = menu_bar_items (FRAME_MENU_BAR_ITEMS (f)); FRAME_MENU_BAR_ITEMS (f) = menu_bar_items (FRAME_MENU_BAR_ITEMS (f));
current_buffer = prev;
#ifdef USE_X_TOOLKIT #ifdef USE_X_TOOLKIT
set_frame_menubar (f, 0); set_frame_menubar (f, 0);
#endif /* USE_X_TOOLKIT */ #endif /* USE_X_TOOLKIT */
current_buffer = prev;
unbind_to (count, Qnil); unbind_to (count, Qnil);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment