Commit 1bd0c761 authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu
Browse files

[TARGET_API_MAC_CARBON] (menu_target_item_handler):

Return immediately unless popup is activated.
parent 841fb47f
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment