From: YAMAMOTO Mitsuharu Date: Thu, 14 Jun 2007 08:39:19 +0000 (+0000) Subject: [TARGET_API_MAC_CARBON] (menu_target_item_handler): X-Git-Tag: emacs-pretest-23.0.90~12278 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1bd0c76127b3b35a356237c8e7cc3064a0ff2392;p=emacs.git [TARGET_API_MAC_CARBON] (menu_target_item_handler): Return immediately unless popup is activated. --- diff --git a/src/macmenu.c b/src/macmenu.c index 5e6ad6f7d10..932af50bbd8 100644 --- a/src/macmenu.c +++ b/src/macmenu.c @@ -1602,6 +1602,10 @@ menu_target_item_handler (next_handler, event, data) GrafPtr port; int specpdl_count = SPECPDL_INDEX (); + /* Don't be bothered with the overflowed toolbar items menu. */ + if (!popup_activated ()) + return eventNotHandledErr; + err = GetEventParameter (event, kEventParamDirectObject, typeMenuRef, NULL, sizeof (MenuRef), NULL, &menu); if (err == noErr)