From fe2297ce7aa0e400f4a80484e2872dcee0de1391 Mon Sep 17 00:00:00 2001 From: Yuuki Harano Date: Wed, 6 May 2020 19:04:23 +0900 Subject: [PATCH] * pgtkmenu.c (set_frame_menubar): fix empty menu. --- src/pgtkmenu.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5