menu-or-popup-active-p

menu-or-popup-active-p is a built-in function in `C source code'.

(menu-or-popup-active-p)

Return t if a menu or popup dialog is active.