Mercurial > emacs
changeset 81409:ffe8cf8ef14e
[TARGET_API_MAC_CARBON] (menu_target_item_handler):
Return immediately unless popup is activated.
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
---|---|
date | Thu, 14 Jun 2007 08:39:19 +0000 |
parents | c5c3c338808a |
children | 26045b628846 |
files | src/macmenu.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/macmenu.c Thu Jun 14 08:39:07 2007 +0000 +++ b/src/macmenu.c Thu Jun 14 08:39:19 2007 +0000 @@ -1602,6 +1602,10 @@ 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)