* src/haikumenu.c (digest_menu_items): Acquire draw lock.
menus[0] = first_menu;
void *window = NULL;
+ void *view = NULL;
if (FRAMEP (Vmenu_updating_frame) &&
FRAME_LIVE_P (XFRAME (Vmenu_updating_frame)) &&
FRAME_HAIKU_P (XFRAME (Vmenu_updating_frame)))
- window = FRAME_HAIKU_WINDOW (XFRAME (Vmenu_updating_frame));
+ {
+ window = FRAME_HAIKU_WINDOW (XFRAME (Vmenu_updating_frame));
+ view = FRAME_HAIKU_VIEW (XFRAME (Vmenu_updating_frame));
+ }
+
+ if (view)
+ BView_draw_lock (view);
while (i < menu_items_used)
{
i += MENU_ITEMS_ITEM_LENGTH;
}
}
+
+ if (view)
+ BView_draw_unlock (view);
}
static Lisp_Object