The SystemTrayIconComponent gives 0,0 as the mouse event position on mouseDown / mouseUp. handleTaskBarEvent could easily find out where the mouse event occured:
POINT point;
::GetCursorPos(&point);
Point<float> p((float) point.x, (float) point.y);
const Time eventTime (getMouseEventTime());
const MouseEvent e (Desktop::getInstance().getMainMouseSource(),
p, eventMods, &owner, &owner, eventTime,
p, eventTime, 1, false);
The position could be used to show a custom component directly above the tray icon.
Could this be added to JUCE?
