Menus don’t disappear when app minimized, they just remain floating on the screen. Also, they aren’t attached to parent window, so parent window moves, and menu is left behind.
Here is a reviewer showing the issue and complaining about it:
I’d like to add that I tried to work around this by using
Component::minimisationStateChanged to call
PopupMenu::dismissAllActiveMenus() but because the callback happens
after the app has been minimised, when the menu is dismissed, it ends the modal callback which re-focuses the app and maximises it again which is probably not expected either.
Thanks for reporting. I’ve made some changes in the ComponentPeer classes which should make PopupMenus automatically dismiss when windows are minimised, moved, and resized:
07:53PM - 07 Jan 21 UTC
This patch should resolve an issue where the popupmenu for a combobox
could become 'stranded' if the plugin window was moved while...
06:00PM - 07 Jan 21 UTC
This change makes heavyweight views listen to window events from higher
in the window hierarchy. If a move or resize event from...
06:53PM - 03 Dec 20 UTC
This change will make plugin views (and other heavyweight views) listen
to their containing window, and dismiss any blocking modal components,
This should resolve the issue, but let us know if you run into any problems with the patches.
Hi, sorry to revive this topic but it appears these commits introduce the issue explained here:
After upgrading from to 6.1.1, I’m getting the “alert” beep whenever I have a modal window that opens another, so to say, “nested” modal window in front of itself.
I’m on macOS 11.4 and it only happens when the nested modal window has a native title bar.
It did not happen in JUCE 6.0.5, which was the version I was using before upgrading.
I have attached a minimal example program that demonstrates the issue:
AlertSoundTest2.zip (173.1 KB)
Beware that this may look like this other is…