I would like to show an icon in the task bar instead of an icon in the dock. But if I hide the dock icon, show a task bar icon using the SystemTrayIconComponent and show a PopupMenu as soon as the mouse moves the PopupMenu is automatically closed.
Reproducable easily with the JUCE demo, just hide the dock in the MainWindow constructor:
Then show the popup menu by command clicking the tray icon of the demo app.
Having both a dock icon and a tray icon at the same time isn't what most apps that have a tray icon do. Most hide their dock icon.
Does anyone have an idea for a workaround for this issue?