aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32menu.c
diff options
context:
space:
mode:
authorDmitry Antipov2012-11-23 19:39:48 +0400
committerDmitry Antipov2012-11-23 19:39:48 +0400
commitf418b22ee985bb6887c45856a1cabe2f5c726fca (patch)
tree51417635f4321a34ffb460c8266866ec87f5a94c /src/w32menu.c
parente7d0e5ee247a155a268ffbf80bedbe25e15b5032 (diff)
downloademacs-f418b22ee985bb6887c45856a1cabe2f5c726fca.tar.gz
emacs-f418b22ee985bb6887c45856a1cabe2f5c726fca.zip
* frame.h (struct frame): Remove display_preempted member
since all users are dead long ago. * nsterm.h (struct x_output): Use the only dummy member. * w32menu.c (pending_menu_activation): Remove since not really used. (set_frame_menubar): Adjust user. * w32term.h (struct x_output): Drop outdated #if 0 code. (struct w32_output): Use bitfields for explicit_parent, asked_for_visible and menubar_active members. Drop unused pending_menu_activation member. * xterm.h (struct x_output): Drop outdated #if 0 code. Use bitfields for explicit_parent, asked_for_visible, has_been_visible and net_wm_state_hidden_seen members.
Diffstat (limited to 'src/w32menu.c')
-rw-r--r--src/w32menu.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/w32menu.c b/src/w32menu.c
index 36bf9574fdc..84fb1bdc71e 100644
--- a/src/w32menu.c
+++ b/src/w32menu.c
@@ -114,17 +114,6 @@ static int fill_in_menu (HMENU, widget_value *);
114 114
115void w32_free_menu_strings (HWND); 115void w32_free_menu_strings (HWND);
116 116
117
118
119/* This is set nonzero after the user activates the menu bar, and set
120 to zero again after the menu bars are redisplayed by prepare_menu_bar.
121 While it is nonzero, all calls to set_frame_menubar go deep.
122
123 I don't understand why this is needed, but it does seem to be
124 needed on Motif, according to Marcus Daniels <marcus@sysc.pdx.edu>. */
125
126int pending_menu_activation;
127
128#ifdef HAVE_MENUS 117#ifdef HAVE_MENUS
129 118
130DEFUN ("x-popup-dialog", Fx_popup_dialog, Sx_popup_dialog, 2, 3, 0, 119DEFUN ("x-popup-dialog", Fx_popup_dialog, Sx_popup_dialog, 2, 3, 0,
@@ -389,8 +378,6 @@ set_frame_menubar (FRAME_PTR f, bool first_time, bool deep_p)
389 378
390 if (! menubar_widget) 379 if (! menubar_widget)
391 deep_p = 1; 380 deep_p = 1;
392 else if (pending_menu_activation && !deep_p)
393 deep_p = 1;
394 381
395 if (deep_p) 382 if (deep_p)
396 { 383 {