SystemTrayIconComponent receives mouseUp when it shouldn't

Hi,

 

I have a problem with the SystemTrayIconComponent class. I've made a subclass and handled mouseDown and mouseUp. The problem is that mouseUp is called immediately after mouseDown (without releasing the mousebutton).

I've set up the application as an agent so there is no menubar or dock icon.

Any ideas?

Thanks in advance. 

 

Doesn't seem to be very possible on OSX - there are issues where it loses mouse-up events.

I've actually just tweaked a couple of other things about the way these items work on OSX, as the highlighting was getting stuck, so let me know if it helps. But AFAICT there's no straightforward way to get real mouse-up events.