From: Yuuki Harano Date: Wed, 6 May 2020 10:04:23 +0000 (+0900) Subject: * pgtkmenu.c (set_frame_menubar): fix empty menu. X-Git-Tag: emacs-29.0.90~3805 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fe2297ce7aa0e400f4a80484e2872dcee0de1391;p=emacs.git * pgtkmenu.c (set_frame_menubar): fix empty menu. --- diff --git a/src/pgtkmenu.c b/src/pgtkmenu.c index 6f4195d6d8a..acc9ab38273 100644 --- a/src/pgtkmenu.c +++ b/src/pgtkmenu.c @@ -277,6 +277,10 @@ set_frame_menubar (struct frame *f, bool first_time, bool deep_p) if (! menubar_widget) deep_p = true; + /* Since button_event handler in pgtk emacs doesn't handle mouse + * events in menubars, the menu needs to be built now. */ + deep_p = true; + if (deep_p) { struct buffer *prev = current_buffer;