Easy feature: drawPopupMenuBackground fails to pass pointer to associated PopupMenu

Which makes it tricky to have different backgrounds for different menus! Can a pointer thrown in?

edit: I realise I can’t have a pointer to the PopupMenu object itself as it may have been deleted, but a pointer to the specific window would be useful :). We’ve got some really sexy looking menus with semi-transparent blurred backgrounds working. But I have a horrible hack at the mo to identify which blurred background to draw.

Would access to the PopupMenu::options or PopupMenu::Options::targetComponent help?

That was promised to come soon here:

I think I need access to the actual Component for the menu as well. But those would be a great start. Just a Component & on the background painting call would be fine :slight_smile: