* src/haikufns.c (haiku_free_frame_resources): Syntax fixes.
* src/haikumenu.c (set_frame_menubar, run_menu_bar_help_event):
* src/haikuterm.c (haiku_read_socket): Stop setting and
consulting `menu_up_to_date_p'.
* src/haikuterm.h (struct haiku_output): Delete
`menu_up_to_date_p'.
BWindow_quit (window);
if (FRAME_OUTPUT_DATA (f)->saved_menu_event)
- xfree (FRAME_OUTPUT_DATA (f))->saved_menu_event;
+ xfree (FRAME_OUTPUT_DATA (f)->saved_menu_event);
xfree (FRAME_OUTPUT_DATA (f));
FRAME_OUTPUT_DATA (f) = NULL;
if (!deep_p)
{
- FRAME_OUTPUT_DATA (f)->menu_up_to_date_p = 0;
items = FRAME_MENU_BAR_ITEMS (f);
Lisp_Object string;
set_buffer_internal_1 (prev);
- FRAME_OUTPUT_DATA (f)->menu_up_to_date_p = 1;
-
/* If there has been no change in the Lisp-level contents
of the menu bar, skip redisplaying it. Just exit. */
void
run_menu_bar_help_event (struct frame *f, int mb_idx)
{
- Lisp_Object frame;
- Lisp_Object vec;
- Lisp_Object help;
-
- block_input ();
- if (!FRAME_OUTPUT_DATA (f)->menu_up_to_date_p)
- {
- unblock_input ();
- return;
- }
+ Lisp_Object frame, vec, help;
XSETFRAME (frame, f);
+ block_input ();
if (mb_idx < 0)
{
kbd_buffer_store_help_event (frame, Qnil);
if (!f || !FRAME_EXTERNAL_MENU_BAR (f))
continue;
- if (FRAME_OUTPUT_DATA (f)->menu_up_to_date_p)
- find_and_call_menu_selection (f, f->menu_bar_items_used,
- f->menu_bar_vector, b->ptr);
+ find_and_call_menu_selection (f, f->menu_bar_items_used,
+ f->menu_bar_vector, b->ptr);
break;
}
case FILE_PANEL_EVENT:
continue;
struct frame *f = haiku_window_to_frame (b->window);
- if (!f || !FRAME_EXTERNAL_MENU_BAR (f) ||
- !FRAME_OUTPUT_DATA (f)->menu_bar_open_p)
+ if (!f || !FRAME_EXTERNAL_MENU_BAR (f)
+ || !FRAME_OUTPUT_DATA (f)->menu_bar_open_p)
continue;
run_menu_bar_help_event (f, b->mb_idx);
-
break;
}
case ZOOM_EVENT:
haiku view;
haiku menubar;
- int menu_up_to_date_p;
- int zoomed_p;
- int hourglass_p;
- int menu_bar_open_p;
int fontset;
int baseline_offset;
+ bool_bf zoomed_p : 1;
+ bool_bf hourglass_p : 1;
+ bool_bf menu_bar_open_p : 1;
+
/* Whether or not there is data in a back buffer that hasn't been
displayed yet. */
bool dirty_p;